<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/9/6 0006
  Time: 16:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="mvc" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="fmt" uri="http://www.springframework.org/tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>注册</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=10,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" type="text/css" href="../../css/sys/userInfor.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/hr/index.css"/>
    <link rel="stylesheet" href="/lib/layer/skin/default/layer.css">
    <script src="/js/jquery/jquery-1.9.1.js" type="text/javascript" charset="utf-8"></script>
    <script src="/lib/jQuery-File-Upload-master/jquery.ui.widget.js" type="text/javascript" charset="utf-8"></script>
    <script src="/lib/jQuery-File-Upload-master/jquery.iframe-transport.js" type="text/javascript" charset="utf-8"></script>
    <script src="/lib/jQuery-File-Upload-master/jquery.fileupload.js" type="text/javascript" charset="utf-8"></script>
    <script src="/js/base/base.js" type="text/javascript" charset="utf-8"></script>
    <script src="/js/sys/userInfor.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/sys/citys.js" type="text/javascript" charset="utf-8"></script>
    <%--<script src="../lib/laydate/laydate.js"></script>--%>
    <script src="/lib/jquery.form.min.js"></script>
    <script src="/lib/pagination/js/jquery.pagination.min.js" type="text/javascript" charset="utf-8"></script>

    <!-- word文本var data_器 -->
    <script src="/lib/ueditor/ueditor.config.js" type="text/javascript" charset="utf-8"></script>
    <script src="/lib/ueditor/ueditor.all.js" type="text/javascript" charset="utf-8"></script>
    <script src="/lib/laydate/laydate.js"></script>
    <script src="../lib/layer/layer.js?20201106" type="text/javascript" charset="utf-8"></script>
    <script src="/js/ajaxupload.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="/js/common/fileupload.js"></script>
    <style>
        html,body{
            height:100%;
        }
        .btn_{
            width:300px;display: block;
        }
        .leave_send{
            display: inline-block;
            float: left;
            width: 66px;
            height: 30px;
            margin-right: 0px;
            margin-top: 10px;
            margin-bottom: 20px;
            background: url(../../img/publish.png) no-repeat;
            padding-left: 47px;
            padding-top: 7px;
            cursor: pointer;
            font-size: 14px;
        }
        #downChild .dpetWhole0 .childdept{
            padding-left: 60px!important;
        }
        #downChild .dpetWhole0 ul .childdept{
            padding-left: 80px!important;
        }
        #downChild .dpetWhole0 ul ul li .childdept{
            padding-left: 95px!important;
        }
        .left {
            width: 21.5%;
            border-right: 1px solid #ccc;
            overflow-y: auto;
        }
        .rig {
            width: 100%;
        }
        /*  .colorDis{
              background-color: #e7e7e7;
          }*/
        table input{
            width: auto;
        }
        .allCondition{
            width: 1200px;
            margin-left: 20px;
        }
        /*.biaoge{  border:1px solid red;  border-collapse:collapse;}*/
        /*.biaoge tbody tr td{ border:1px solid red; }*/
        /*.text_width{width:128px;}*/
        .loopData{
            font-size: 11pt;
        }



        table.TableBlock tr td:nth-child(2){
            width: 33%;
        }
        table.TableBlock tr td:nth-child(1){
            width:21%!important;
        }
        .bar {
            height: 18px;
            background: green;
        }
        .headli1_1 {
            padding: 0px 10px;
            display: inline-block;
            text-align: center;
        }
        .headli1_2 {
            width: 2px;
            margin-left: 10px;vertical-align: middle;

        }
        .title{
            width:150px;
            height:30px;
            line-height: 30px;
            background: #4472c4;
            color:#ffffff;
            font-size: 18px;
            font-weight: bold;
            transform: skewX(-25deg);
            margin-left: 20px;
            float: left;
            border-radius: 3px;
            text-align: center;
        }
        .title span {
            display: inline-block;
            height: 100%;
            line-height: 45px;
            font-size: 20px;
            margin-left: 6px;
            letter-spacing: 2px;
            transform: skewX(25deg);
        }
        .line{
            width:calc(100% - 200px);
            height:10px;
            background: #4472c4;
            transform: skewX(-25deg);
            margin-left: 1px;
            float: left;
            margin-top: 22px;
        }
        .uploadPhoto{
            background: #138eee;
            color: #fff;
            border-radius: 4px;
            width: 90px;
            text-align: center;
            line-height: 30px;
            margin-top: -10px;
            margin-left: 42px;
        }
        #rs1 {
            display: inline-block;
            float: left;
            width: 78px;
            height: 35px;
            line-height: 35px;
            margin-right: 25px;
            margin-top: 8px;
            margin-bottom: 20px;
            cursor: pointer;
            border-radius: 3px;
            padding-left: 0px;
            font-size: 14px;
            background: #F8F8F8;
            display:none;
            text-align: center;
            border: 1px solid #e3e3e3;
        }
        #rs2 {
            display: inline-block;
            float: left;
            width: 78px;
            height: 35px;
            line-height: 35px;
            margin-right: 25px;
            margin-top: 8px;
            margin-bottom: 20px;
            cursor: pointer;
            border-radius: 3px;
            padding-left: 0px;
            font-size: 14px;
            background: #F8F8F8;
            display:none;
            text-align: center;
            border: 1px solid #e3e3e3;
        }
        #rs3 {
            display: inline-block;
            float: left;
            width: 87px;
            height: 33px;
            text-align: center;
            border: 1px solid #e3e3e3;
            line-height: 33px;
            /* margin-right: 30px; */
            margin-top: 10px;
            margin-bottom: 20px;
            cursor: pointer;
            border-radius: 3px;
            padding-left: 0px;
            font-size: 14px;
            background: #F8F8F8;
            display:none;
        }
        #update {
            display: inline-block;
            float: left;
            width: 78px;
            height: 35px;
            line-height: 35px;
            margin-right: 25px;
            margin-top: 8px;
            margin-bottom: 20px;
            cursor: pointer;
            border-radius: 3px;
            padding-left: 0px;
            font-size: 14px;
            background: #F8F8F8;
            display:none;
            text-align: center;
            border: 1px solid #e3e3e3;
        }
        .foot_mg{
            width:100%;
        }
        .btn_ {
            width: 420px;
            height:50px;
            display: block;
            margin: 0 auto;
            float: none!important;
        }
        #rs {
            display: inline-block;
            float: left;
            width: 78px;
            height: 38px;
            line-height: 35px;
            /*  margin-right: 30px;*/
            margin-top: 20px;
            margin-bottom: 20px;
            cursor: pointer;
            border-radius: 3px;
            padding-left: 19px;
            font-size: 14px;
            background: #F8F8F8;
            display:none;

        }
        #add_send{
            margin-right:0px;
            /*margin-left:35%*/
        }
        table input[type=text]{
            width:210px;
        }

    </style>
    <script>
        function newtime(val) {
//            console.log($(val).val())
            var date = new Date($(val).val());
            // 有三种方式获取
            var time1 = date.getTime();

            var datanew=new Date();


        }


    </script>
</head>
<body>

<div class="cont">
    <div class="rig">
        <div></div>
        <%--<div class="table_personDetail" id="table_personDetail" style="display: block;">--%>
            <%--<form id="ajaxforms" action="/hr/staffEntry/insert" style="overflow: hidden;">--%>
                <%--<div style="width: 100%;margin-top:10px;">--%>
                    <%--<div class="title">--%>
                        <%--<span>基础信息</span>--%>
                    <%--</div>--%>
                    <%--<div class="line"></div>--%>
                <%--</div>--%>
                <%--<table class="TableBlock biaoge" width="100%" align="center" style="margin-top: 68px;">--%>
                    <%--<tbody>--%>
                    <%--&lt;%&ndash;<tr>&ndash;%&gt;--%>
                        <%--&lt;%&ndash;<td nowrap="" class="TableHeader" colspan="6"><b>&nbsp;注册信息</b></td>&ndash;%&gt;--%>
                    <%--&lt;%&ndash;</tr>&ndash;%&gt;--%>
                    <%--<tr>--%>
                        <%--<td nowrap="" class="TableData text_width test_text">手机号：</td>--%>
                        <%--<td class="TableData" >--%>
                            <%--<input type="text" name="staffPhone" class="BigInput per_minzu" value=""><span style="color: #FF0000;margin-left: 10px;font-size: 16px;">*</span>--%>
                            <%--<a href="javascript:;" id="downCheck" onclick="send()">点击验证</a>--%>
                        <%--</td>--%>
                        <%--<td nowrap="" class="TableData text_width test_text">验证码：</td>--%>
                        <%--<td class="TableData" >--%>
                            <%--<input type="text" name="" id="check" class="BigInput per_minzu" value=""><span style="color: #FF0000;margin-left: 10px;font-size: 16px;">*</span>--%>
                        <%--</td>--%>
                    <%--</tr>--%>
                    <%--<tr >--%>
                        <%--<td nowrap="" class="TableData text_width test_text">姓名：</td>--%>
                        <%--<td class="TableData" width="180" colspan="1"  >--%>
                            <%--<input type="text" name="staffName"  value="" class="BigStatic per_name test_null" ><span style="color: #FF0000;margin-left: 10px;font-size: 16px;">*</span>--%>
                        <%--</td>--%>
                        <%--<td nowrap="" class="TableData text_width test_text" >性别：</td>--%>
                        <%--<td class="TableData" colspan="3" title="<fmt:message code="hr.th.ID" />">--%>
                            <%--<select style="width:210px;" name="staffSex" class="BigSelect per_sex">--%>
                                <%--<option value="0" selected=""><fmt:message code="userInfor.th.male" /></option>--%>
                                <%--<option value="1"><fmt:message code="userInfor.th.female" /></option>--%>
                            <%--</select>--%>
                            <%--<span style="color: #FF0000;margin-left: 10px;font-size: 16px;">*</span>--%>
                        <%--</td>--%>
                    <%--</tr>--%>
                    <%--<tr>--%>
                        <%--<td nowrap="" class="TableData text_width">身份证号：</td>--%>
                        <%--<td class="TableData">--%>
                            <%--<input type="text" name="staffCardNo" id="STAFF_CARD_NO" class="BigInput per_ident" value="" onblur="check()">--%>
                            <%--<span style="color: #FF0000;margin-left: 10px;font-size: 16px;">*</span>--%>
                        <%--</td>--%>
                        <%--<td nowrap="" class="TableData text_width">出生年月日：</td>--%>
                        <%--<td class="TableData" title="<fmt:message code="hr.th.ID"/>">--%>
                            <%--<input type="text" name="staffBirth" id="STAFF_BIRTH" size="10" maxlength="10" class="BigInput per_date" value="" onclick="laydate({istime: true, format: 'YYYY-MM-DD',choose:get_animal_sign})" onchange="get_animal_sign()">--%>
                            <%--&lt;%&ndash;<input type="checkbox" name="IS_LUNAR" id="IS_LUNAR"  style="width:15px;   margin-left: 13px;margin-top: 4px;float:none;" class="per_noneli">--%>
                            <%--<label for="IS_LUNAR" style="color:#999;" class="nongli"><fmt:message code="url.th.Lunar" /></label>&ndash;%&gt;--%>
                            <%--<span style="color: #FF0000;margin-left: 10px;font-size: 16px;">*</span>--%>
                        <%--</td>--%>

                    <%--</tr>--%>
                    <%--<tr>--%>
                        <%--<td nowrap="" class="TableData text_width">民族：</td>--%>
                        <%--<td class="TableData" ><input type="text" name="staffNationality" class="BigInput per_minzu" value=""><span style="color: #FF0000;margin-left: 10px;font-size: 16px;">*</span></td>--%>
                        <%--<td nowrap="" class="TableData text_width">籍贯：</td>--%>
                        <%--<td class="TableData"  nowrap="">--%>
                            <%--<select style="width:210px;" name="staffNativePlace" class="BigSelect per_address" title="<fmt:message code="hr.th.OriginIn" />。">--%>
                                <%--<option value="" selected="">请选择</option>--%>
                                <%--<option value="110000">北京</option>--%>
                                <%--<option value="120000">天津</option>--%>
                                <%--<option value="130000">河北</option>--%>
                                <%--<option value="140000">山西</option>--%>
                                <%--<option value="150000">内蒙古</option>--%>
                                <%--<option value="210000">辽宁</option>--%>
                                <%--<option value="220000">吉林</option>--%>
                                <%--<option value="230000">黑龙江</option>--%>
                                <%--<option value="310000">上海</option>--%>
                                <%--<option value="320000">江苏</option>--%>
                                <%--<option value="330000">浙江</option>--%>
                                <%--<option value="340000">安徽</option>--%>
                                <%--<option value="350000">福建</option>--%>
                                <%--<option value="360000">江西</option>--%>
                                <%--<option value="370000">山东</option>--%>
                                <%--<option value="410000">河南</option>--%>
                                <%--<option value="420000">湖北</option>--%>
                                <%--<option value="430000">湖南</option>--%>
                                <%--<option value="440000">广东</option>--%>
                                <%--<option value="450000">广西</option>--%>
                                <%--<option value="460000">海南</option>--%>
                                <%--<option value="500000">重庆</option>--%>
                                <%--<option value="510000">四川</option>--%>
                                <%--<option value="520000">贵州</option>--%>
                                <%--<option value="530000">云南</option>--%>
                                <%--<option value="540000">西藏</option>--%>
                                <%--<option value="610000">陕西</option>--%>
                                <%--<option value="620000">甘肃</option>--%>
                                <%--<option value="630000">青海</option>--%>
                                <%--<option value="640000">宁夏</option>--%>
                                <%--<option value="650000">新疆</option>--%>
                                <%--<option value="710000">台湾</option>--%>
                                <%--<option value="810000">香港</option>--%>
                                <%--<option value="820000">澳门</option>--%>
                            <%--</select>--%>
                            <%--<span style="color: #FF0000;margin-left: 10px;font-size: 16px;">*</span>--%>
                        <%--</td>--%>

                    <%--</tr>--%>
                    <%--<tr>--%>

                        <%--<td nowrap="" class="TableData text_width">政治面貌：</td>--%>
                        <%--<td class="TableData" width="180">--%>
                            <%--<select style="width:210px;" name="staffPoliticalStatus" class="BigSelect per_zhengzhi" title="<fmt:message code="hr.th.PoliticalAffiliation" />。">--%>
                                <%--<option value="" selected="">请选择</option>--%>
                                <%--<option value="1"><fmt:message code="hr.th.TheMasses" /></option>--%>
                                <%--<option value="2"><fmt:message code="hr.th.Communist" /></option>--%>
                                <%--<option value="3"><fmt:message code="hr.th.CPCMembers" /></option>--%>
                                <%--<option value="4"><fmt:message code="hr.th.CPCProbationaryParty" /></option>--%>
                                <%--<option value="5"><fmt:message code="hr.th.DemocraticParties" /></option>--%>
                                <%--<option value="6"><fmt:message code="hr.th.PersonagesWithoutParty" /></option>--%>
                            <%--</select>--%>
                            <%--<span style="color: #FF0000;margin-left: 10px;font-size: 16px;">*</span>--%>
                        <%--</td>--%>
                        <%--<td nowrap="" class="TableData text_width">婚姻状况：</td>--%>
                        <%--<td class="TableData" width="180">--%>
                            <%--<select  style="width:210px;"   name="staffMaritalStatus" class="BigSelect per_hunyin">--%>
                                <%--<option value="" selected="">请选择</option>--%>
                                <%--<option value="0"><fmt:message code="hr.th.unmarried" /></option>--%>
                                <%--<option value="1"><fmt:message code="hr.th.married" /></option>--%>
                                <%--<option value="2"><fmt:message code="hr.th.Divorce" /></option>--%>
                                <%--<option value="3"><fmt:message code="hr.th.Widowed" /></option>--%>
                            <%--</select>--%>
                        <%--</td>--%>

                    <%--</tr>--%>
                    <%--<tr>--%>
                        <%--<td nowrap="" class="TableData text_width">身高：</td>--%>
                        <%--<td class="TableData"><input type="text" name="height" value="" class="BigInput per_worknum"><span style="margin-left: 0px;font-size: 16px;">CM</span></td>--%>


                    <%--</tr>--%>
                    <%--<tr>--%>
                        <%--<td colspan="4" style="overflow: hidden">--%>
                            <%--<div style="width: 100%;margin-top:10px;    height: 40px;">--%>
                                <%--<div class="title">--%>
                                    <%--<span style="margin-left:6px;">扩展信息</span>--%>
                                <%--</div>--%>
                                <%--<div class="line"></div>--%>
                            <%--</div>--%>
                        <%--</td>--%>
                    <%--</tr>--%>

                    <%--<tr>--%>
                        <%--<td nowrap="" class="TableData text_width" >毕业院校：</td>--%>
                        <%--<td class="TableData" width="180"><input type="text" name="graduationSchool" value="" class="BigInput per_school"></td>--%>
                        <%--<td nowrap="" class="TableData text_width test_text"  >文化程度：</td>--%>
                        <%--<td class="TableData" width="180" >--%>
                            <%--<select style="width:210px;" name="staffHighestSchool" class="BigSelect per_xueli test_null" title="<fmt:message code="hr.th.TheEducation" />。">--%>
                                <%--<option value="" selected="">请选择</option>--%>
                                <%--<option value="1"><fmt:message code="vote.hr.1" /></option>--%>
                                <%--<option value="2"><fmt:message code="vote.hr.2" /></option>--%>
                                <%--<option value="3"><fmt:message code="vote.hr.3" /></option>--%>
                                <%--<option value="4"><fmt:message code="vote.hr.4" /></option>--%>
                                <%--<option value="5"><fmt:message code="vote.hr.5" /></option>--%>
                                <%--<option value="6"><fmt:message code="vote.hr.6" /></option>--%>
                                <%--<option value="7"><fmt:message code="vote.hr.7" /></option>--%>
                                <%--<option value="8"><fmt:message code="vote.hr.8" /></option>--%>
                                <%--<option value="9"><fmt:message code="vote.hr.9" /></option>--%>
                                <%--<option value="11"><fmt:message code="vote.hr.10" /></option>--%>
                            <%--</select>--%>
                        <%--</td>--%>
                    <%--</tr>--%>


                    <%--<tr>--%>
                        <%--<td nowrap="" class="TableData text_width" >专业：</td>--%>
                        <%--<td class="TableData" ><input type="text" name="staffMajor" value="" class="BigInput per_zhuanye"></td>--%>
                        <%--<td nowrap="" class="TableData" width="100" >特长：</td>--%>
                        <%--<td class="TableData" width="180"><input type="text" name="staffSkills" value="" size="80" style="width:210px;" class="BigInput per_techang"></td>--%>

                    <%--</tr>--%>
                    <%--<tr>--%>
                        <%--<td nowrap="" class="TableData text_width" >岗位：</td>--%>
                        <%--<td nowrap="" class="TableData">--%>
                            <%--<select style="width:210px;" name="workJob" class="BigSelect per_yingpin" >--%>
                                <%--&lt;%&ndash;  <option value=""></option>--%>
                                <%--<option value="1"><fmt:message code="hr.th.Technology" /></option>--%>
                                <%--<option value="2"><fmt:message code="hr.th.TechnicalSupport" /></option>--%>
                                <%--<option value="3"><fmt:message code="hr.th.Sale" /></option>&ndash;%&gt;--%>
                            <%--</select>--%>
                            <%--<span style="color: #FF0000;margin-left: 10px;font-size: 16px;">*</span>--%>
                        <%--</td>--%>
                        <%--&lt;%&ndash;<td nowrap="" class="TableData text_width" >联系电话：</td>--%>
                        <%--<td class="TableData" width="180"><input type="text" name="staffPhone" class="BigInput per_phone" value=""><span style="color: #FF0000;margin-left: 10px;font-size: 16px;">*</span></td>--%>
                    <%--&ndash;%&gt;--%>
                        <%--<td nowrap="" class="TableData text_width" >居住地址：</td>--%>
                        <%--<td class="TableData" width="180" ><input type="text" name="homeAddress" size="50" value="" class="BigInput per_familyAdd"></td>--%>
                    <%--</tr>--%>
                    <%--<tr>--%>

                        <%--<td nowrap="" class="TableData text_width" >品类：</td>--%>
                        <%--<td class="TableData" width="180" >--%>
                            <%--<select  style="width:210px;"   name="category" class="BigSelect per_hunyin">--%>
                                <%--<option value="">请选择品类</option>--%>
                                <%--<option value="1">洗衣机</option>--%>
                                <%--<option value="2">冰箱</option>--%>
                                <%--<option value="3">空调</option>--%>
                                <%--<option value="4">厨卫</option>--%>
                                <%--<option value="5">电视</option>--%>
                                <%--<option value="6">影音</option>--%>
                                <%--<option value="7">厨房小电</option>--%>
                                <%--<option value="8">个护电器</option>--%>
                                <%--<option value="9">健康</option>--%>
                                <%--<option value="10">电器</option>--%>
                                <%--<option value="11">生活两季</option>--%>
                                <%--<option value="12">其他</option>--%>
                            <%--</select>--%>
                            <%--<span style="color: #FF0000;margin-left: 10px;font-size: 16px;">*</span>--%>
                        <%--</td>--%>
                        <%--<td nowrap="" class="TableData text_width" >品牌：</td>--%>
                        <%--<td class="TableData" width="180" ><input type="text" name="brand" size="50" value="" class="BigInput per_familyAdd"><span style="color: #FF0000;margin-left: 10px;font-size: 16px;">*</span></td>--%>


                    <%--</tr>--%>
                    <%--<tr>--%>
                        <%--<td nowrap="" class="TableData text_width" >入职京东时间：</td>--%>
                        <%--<td class="TableData">--%>
                            <%--<input type="text" name="datesEmployed" size="10" maxlength="10" class="BigInput per_ruzhiTime" value="" onclick="laydate({istime: true, format: 'YYYY-MM-DD',choose:function(dates){--%>
                                <%--var date=new Date();--%>
                                <%--var year=date.getTime();--%>
                                <%--var oldYear=Number(new Date(dates).getTime());--%>
                                <%--var time=(year-oldYear) / 1000 / 60 / 60 / 24 /365;--%>
                                <%--var times=time.toFixed(1);--%>
                                 <%--times=Math.ceil(times)--%>
                                <%--$('.per_gongling').val(times)--%>
                            <%--}})">--%>
                            <%--<span style="color: #FF0000;margin-left: 10px;font-size: 16px;">*</span>--%>
                        <%--</td>--%>
                        <%--<td nowrap="" class="TableData text_width" >个人邮箱：</td>--%>
                        <%--<td class="TableData" width="180"><input type="text" name="staffEmail" class="BigInput per_email" data-prompt-position="centerRight:5,-4" value=""><span style="color: #FF0000;margin-left: 10px;font-size: 16px;">*</span></td>--%>

                    <%--</tr>--%>
                    <%--<tr>--%>


                        <%--<td nowrap="" class="TableData text_width" >京东邮箱：</td>--%>
                        <%--<td class="TableData" width="180"><input type="text" name="jdEmail" class="BigInput jd_email" data-prompt-position="centerRight:5,-4" value=""></td>--%>
                        <%--<td nowrap="" class="TableData text_width" >虚拟ERP：</td>--%>
                        <%--<td class="TableData" width="180"><input type="text" name="virturalErp" class="BigInput per_email" data-prompt-position="centerRight:5,-4" value=""></td>--%>

                    <%--</tr>--%>

                    <%--<tr style="display: none;">--%>
                        <%--<td nowrap="" class="TableData text_width"  ></td>--%>
                        <%--<td colspan="5"><span style="color:#999;font-size:14px;"><fmt:message code="hr.th.PhotoFormats" />!</span></td>--%>

                    <%--</tr>--%>
                    <%--<tr>--%>
                        <%--<td nowrap="" class="TableData text_width" >采销姓名：</td>--%>
                        <%--<td class="TableData" width="180"><input type="text" name="adoptPinName" class="BigInput per_email" data-prompt-position="centerRight:5,-4" value=""><span style="color: #FF0000;margin-left: 10px;font-size: 16px;">*</span></td>--%>

                    <%--</tr>--%>
                    <%--</tbody>--%>
                <%--</table>--%>
                <%--<div class="box_two foot_mg">--%>
                    <%--<div class="btn_">--%>
                        <%--<div id="add_send" value="1" type="publish" class="fot_1 btn_ok" ac="edit" onclick="addClick()"><fmt:message code="global.lang.save" /></div>--%>
                        <%--&lt;%&ndash; <div id="leave_send" value="0" type="save" class="btn_style btn_ok leave_send"><fmt:message code="hr.th.Quit" /></div>&ndash;%&gt;--%>
                    <%--</div>--%>
                <%--</div>--%>

                <%--<div class="childQuery" style="display:none;">--%>
                    <%--<div align="center" style="float: right; ">--%>
                        <%--<input type="button" value="<fmt:message code="HR.TH.Newuserfile" />" class="BigButton hr_add" title="<fmt:message code="HR.TH.Newuserfile" />">--%>
                    <%--</div>--%>
                    <%--<div align="center" style="float: right; ">--%>
                        <%--<input  type="button" class="BigButton hr_inquire" value="导出" id="hrStaffInfoExport" onclick="clicked1();"/>--%>
                    <%--</div>--%>
                    <%--<div class="per_title" style="margin-top:20px;margin-left:20px;"><h3><fmt:message code="hr.th.Userfilelist" /><span class="have_per">0</span><fmt:message code="hr.th.PeopleNotFiling" /><span class="no_perCount">0</span>人</h3></div>--%>
                    <%--<table class="allCondition"    style="border-collapse: collapse;" ></table>--%>
                <%--</div>--%>
            <%--</form>--%>
        <%--</div>--%>
            <div class="table_personDetail" id="table_personDetail" style="">

                <table class="TableBlock biaoge" width="100%" align="center">

                    <tr>
                        <td nowrap="" class="TableHeader" colspan="6"><b>&nbsp;<fmt:message code="url.th.EssentialInformation" /></b>
                            <%--<a href="javascript:;" class="contant" style="margin-left:20px;font-size: 14px;">相关信息</a></td>--%>
                    </tr>
                    <tr >
                        <td nowrap="" class="TableData text_width test_text">姓名：</td>
                        <td class="TableData"  width="180"colspan="1" >
                            <input type="text" name="staffName" id="staffName" title="姓名"  value="" class="BigStatic per_name test_null" ><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>
                        </td>

                        <td  class=" text_width" rowspan="5"></td>
                        <td class="TableData" align="left" rowspan="5" colspan="3">
                            <p class="hr_photo"><fmt:message code="hr.th.NoPhotos" /></p>
                            <input type="hidden" name="photoName" title="上传照片" id="photoName">
                            <form method="post" action="/upload?module=hr_staffinfo" name="photoForm" enctype="multipart/form-data" id="photoUp" style="position: relative">
                                <input style="width:210px;text-align: right; color:#999;position: absolute;opacity: 0; width: 70px;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);    top: 14px;
    left: 46px;" type="file"  name="file" id="uploadPhoto" size="40" class="BigInput" accept="image/gif,image/jpeg,image/jpg,image/png,image/svg" >&nbsp;
                                <div class="uploadPhoto">上传照片<span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></div>
                            </form>
                        </td>
                    </tr>
                    <tr>
                        <td nowrap="" class="TableData text_width" >联系电话：</td>
                        <td class="TableData" width="180"><input type="text" title="联系电话" name="staffPhone" id="staffPhone" class="BigInput per_dianhua" value=""><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>
                    </tr>
                    <tr>
                        <td nowrap="" class="TableData text_width test_text" >部门：</td>
                        <td class="TableData"  width="180">
                            <%--<input type="hidden" name="deptId" id="deptId" class="dept_id">--%>
                            <input type="text" name="deptId" title="部门" style="background-color: #e7e7e7;" value="" id="deptId"  class="BigStatic company dept_name test_null" size=12 maxlength=100 readonly="">
                            <span style="color: #FF0000;margin-left: 0px;font-size: 16px;" id="info">*</span>
                                <a href="javascript:;" id="add">添加</a>
                                <a href="javascript:;" id="clear">清除</a>
                        </td>
                    </tr>

                    <tr>
                        <td nowrap="" class="TableData text_width">政治面貌：</td>
                        <td class="TableData" width="180">
                            <select style="width:210px;" title="政治面貌" name="staffPoliticalStatus" id="staffPoliticalStatus" class="BigSelect per_zhengzhi"  />">
                                <option value="" selected=""></option>
                                <option value="1"><fmt:message code="hr.th.TheMasses" /></option>
                                <option value="2"><fmt:message code="hr.th.Communist" /></option>
                                <option value="3"><fmt:message code="hr.th.CPCMembers" /></option>
                                <option value="4"><fmt:message code="hr.th.CPCProbationaryParty" /></option>
                                <option value="5"><fmt:message code="hr.th.DemocraticParties" /></option>
                                <option value="6"><fmt:message code="hr.th.PersonagesWithoutParty" /></option>
                            </select>
                            <%--<span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>--%>
                        </td>

                    </tr>


                    <tr>

                        <td nowrap="" class="TableData text_width">性别：</td>
                        <td class="TableData" colspan="3" title="<fmt:message code="hr.th.ID" />">
                            <select style="width:210px;" name="staffSex" title="性别" id="staffSex" class="BigSelect per_sex">
                                <option value="0" selected=""><fmt:message code="userInfor.th.male" /></option>
                                <option value="1"><fmt:message code="userInfor.th.female" /></option>
                            </select>
                            <%--<span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>--%>
                        </td>
                    </tr>

                    <tr>
                        <td nowrap="" class="TableData text_width">身份证号：</td>
                        <td class="TableData">
                            <input type="text" title="身份证号" name="staffCardNo" id="staffCardNo" class="BigInput per_ident" value="" onblur="check()">
                            <span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>
                        </td>
                        <td nowrap="" class="TableData text_width"> 出生年月：</td>
                        <td class="TableData" colspan="3" title="<fmt:message code="hr.th.ID"/>">
                            <input type="text" name="staffBirth" title="出生年月" id="staffBirth" size="10" maxlength="10" class="BigInput per_date" value="" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" >
                            <%--<span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>--%>
                            <input type="checkbox" name="isLunar" id="isLunar"  style="width:15px;   margin-left: 13px;margin-top: 4px;float:none;" class="per_noneli">
                            <label for="IS_LUNAR" style="color:#999;" class="nongli"><fmt:message code="url.th.Lunar" /></label>
                        </td>
                    </tr>
                    <tr>
                        <td nowrap="" class="TableData text_width">年龄：</td>
                        <td class="TableData" title="<fmt:message code="hr.th.ID" />"><input type="text" title="年龄" name="staffAge" id="staffAge" size="4" class="BigInput per_age" value=""><span style="margin-left: 4px;font-size:12px;line-height: 28px;color:#999;"><fmt:message code="hr.th.year" /></span></td>
                        <td nowrap="" class="TableData text_width">身高：</td>
                        <td class="TableData" title="<fmt:message code="hr.th.ID" />"><input type="text" title="身高" name="height" id="height" size="4" class="BigInput height" value="">CM </td>

                    </tr>
                    <tr>

                        <td nowrap="" class="TableData text_width">籍贯：</td>
                        <td class="TableData"  nowrap="" >
                            <select style="width:107px;"   id="sheng" class="BigSelect per_address" >

                            </select>
                            <select name="" style="width:110px;" id="city"></select>
                            <input type="hidden" title="籍贯" name="staffNativePlace" id="staffNativePlace">
                            <%--<span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>--%>

                        </td>
                        <td nowrap="" class="TableData text_width"  style="padding-right: 8px;">
                            <%--<select name="" id="">--%>
                                <%--<option value="">请选择县</option>--%>
                            <%--</select>--%>
                        </td>
                        <td><input type="text" title="详细地址" placeholder="<fmt:message code="vote.th.enterAddress" />" class="per_detialAdd" id="staffNativePlace2" name="staffNativePlace2" style="width:210px;height: 28px;" value=""></td>

                    </tr>

                    <tr>

                        <td nowrap="" class="TableData text_width" style="padding-right: 8px;">血型  : </td>
                        <td class="TableData">
                            <select style="width:210px;" name="bloodType" title="血型" id="bloodType" class="BigSelect per_xiexing">
                                <option value=""></option>
                                <option value="A">A</option>
                                <option value="B">B</option>
                                <option value="O">O</option>
                                <option value="AB">AB</option>
                            </select>
                            <%--<span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>--%>
                        </td>
                            <td nowrap="" class="TableData text_width">婚姻状况：</td>
                            <td class="TableData" width="180">
                                <select  style="width:210px;" title="婚姻状况"   name="staffMaritalStatus" id="staffMaritalStatus" class="BigSelect per_hunyin">
                                    <option value="" selected=""></option>
                                    <option value="0"><fmt:message code="hr.th.unmarried" /></option>
                                    <option value="1"><fmt:message code="hr.th.married" /></option>
                                    <option value="2"><fmt:message code="hr.th.Divorce" /></option>
                                    <option value="3"><fmt:message code="hr.th.Widowed" /></option>
                                </select>
                                <%--<span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>--%>
                            </td>
                    </tr>
                    <tr>
                        <td nowrap="" class="TableData text_width">民族：</td>
                        <td class="TableData" ><input title="民族" type="text" name="staffNationality" id="staffNationality" class="BigInput per_minzu" value=""></td>

                        <td nowrap="" class="TableData" width="100" >特长：</td>
                        <td class="TableData" width="180" colspan="5" ><input title="特长" type="text" name="staffSkills" id="staffSkills" value="" size="80" style="width:210px;" class="BigInput per_techang"></td>

                    </tr>
                    <tr>
                        <td nowrap="" class="TableData text_width" >计算机水平：</td>
                        <td class="TableData" ><input type="text" title="计算机水平" name="computerLevel" id="computerLevel" value="" class="BigInput per_shuiping"></td>
                        <%--<td nowrap="" class="TableData text_width" >户口所在地：</td>--%>
                        <%--<td class="TableData" width="180">--%>
                            <%--<select name="staffDomicilePlace" id="">--%>
                                <%--<option value="" selected=""></option>--%>
                                <%--<option value="110000">北京</option>--%>
                                <%--<option value="120000">天津</option>--%>
                                <%--<option value="130000">河北</option>--%>
                                <%--<option value="140000">山西</option>--%>
                                <%--<option value="150000">内蒙古</option>--%>
                                <%--<option value="210000">辽宁</option>--%>
                                <%--<option value="220000">吉林</option>--%>
                                <%--<option value="230000">黑龙江</option>--%>
                                <%--<option value="310000">上海</option>--%>
                                <%--<option value="320000">江苏</option>--%>
                                <%--<option value="330000">浙江</option>--%>
                                <%--<option value="340000">安徽</option>--%>
                                <%--<option value="350000">福建</option>--%>
                                <%--<option value="360000">江西</option>--%>
                                <%--<option value="370000">山东</option>--%>
                                <%--<option value="410000">河南</option>--%>
                                <%--<option value="420000">湖北</option>--%>
                                <%--<option value="430000">湖南</option>--%>
                                <%--<option value="440000">广东</option>--%>
                                <%--<option value="450000">广西</option>--%>
                                <%--<option value="460000">海南</option>--%>
                                <%--<option value="500000">重庆</option>--%>
                                <%--<option value="510000">四川</option>--%>
                                <%--<option value="520000">贵州</option>--%>
                                <%--<option value="530000">云南</option>--%>
                                <%--<option value="540000">西藏</option>--%>
                                <%--<option value="610000">陕西</option>--%>
                                <%--<option value="620000">甘肃</option>--%>
                                <%--<option value="630000">青海</option>--%>
                                <%--<option value="640000">宁夏</option>--%>
                                <%--<option value="650000">新疆</option>--%>
                                <%--<option value="710000">台湾</option>--%>
                                <%--<option value="810000">香港</option>--%>
                                <%--<option value="820000">澳门</option>--%>
                            <%--</select>--%>
                            <%--<span style="color: #FF0000;margin-left: 10px;font-size: 16px;">*</span>--%>
                            <%--&lt;%&ndash;<input type="text" name="STAFF_DOMICILE_PLACE" value="" size="40" class="BigInput per_hukouAdd">&ndash;%&gt;--%>
                        <%--</td>--%>

                    </tr>

                    <%--<tr style="display: none;">--%>
                        <%--<td nowrap="" class="TableData text_width"  ><fmt:message code="hr.th.PhotoUpload" />：</td>--%>
                        <%--<td class="TableData" width="180" colspan="5" >--%>
                            <%--<form method="post" action="" name="photoForm" enctype="multipart/form-data" id="photoForm"><span id="showImage"></span>--%>
                                <%--<input style="width:210px;text-align: right; color:#999;" type="file" name="imageFile" id="imageFile" size="40" class="BigInput" title="<fmt:message code="doc.th.SelectAttachment" />" >&nbsp;--%>
                            <%--</form>--%>
                        <%--</td>--%>
                    <%--</tr>--%>
                    <tr style="display: none;">
                        <td nowrap="" class="TableData text_width"  ></td>
                        <td colspan="5"><span style="color:#999;font-size:14px;"><fmt:message code="hr.th.PhotoFormats" />!</span></td>
                    </tr>


                    <tr>
                        <td nowrap="" class="TableHeader" colspan="6"><b>&nbsp;<fmt:message code="hr.th.Position" />：</b></td>
                    </tr>

                    <tr>

                        <td nowrap="" class="TableData text_width" >入职品牌方时间：</td>
                        <td class="TableData" >
                            <input type="text" title="入职品牌方时间" name="datesBrandEmployed" id="datesBrandEmployed" size="10" maxlength="10" class="BigInput per_ruzhiTime" value="" onclick="laydate({istime: true, format: 'YYYY-MM-DD',choose:function(dates){
                                var date=new Date();
                                var year=date.getTime();
                                var oldYear=Number(new Date(dates).getTime());
                                var time=(year-oldYear) / 1000 / 60 / 60 / 24 /365;
                                var times=time.toFixed(1);
                                 times=Math.ceil(times)
                                $('.per_gongling').val(times)
                            }})">
                            <span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>
                        </td>


                        <td nowrap="" class="TableData text_width" >其他联系方式：</td>
                        <td class="TableData" width="180" ><input type="text" title="其他联系方式" name="otherContact" id="otherContact" size="50" value="" class="BigInput per_elseType"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>




                    </tr>
                    <tr>
                        <td nowrap="" class="TableData text_width" >岗位：</td>
                        <td nowrap="" class="TableData">
                            <select type="select" style="width:210px;" title="岗位" name="workJob" id="workJob" class="BigSelect per_yingpin" >
                                <%--  <option value=""></option>
                                      <option value="1"><fmt:message code="hr.th.Technology" /></option>
                                      <option value="2"><fmt:message code="hr.th.TechnicalSupport" /></option>
                                      <option value="3"><fmt:message code="hr.th.Sale" /></option>--%>
                            </select>
                            <span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>
                        </td>
                        <td nowrap="" class="TableData text_width" >公司邮箱：</td>
                        <td class="TableData" ><input type="text" name="jdEmail" title="公司邮箱" id="jdEmail" class="BigInput per_msn" value=""></td>


                    </tr>

                    <tr>

                        <td nowrap="" class="TableData text_width" >家庭地址：</td>
                        <td class="TableData" width="180" ><input title="家庭地址" type="text" name="homeAddress" id="homeAddress" size="50" value="" class="BigInput per_familyAdd"></td>
                        <td nowrap="" class="TableData text_width" >电子邮件：</td>
                        <td class="TableData" width="180"><input title="电子邮件" type="text" name="staffEmail" id="staffEmail" class="BigInput per_email" data-prompt-position="centerRight:5,-4" value=""><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>


                    </tr>
                    <tr>

                        <td nowrap="" class="TableData text_width" >虚拟ERP：</td>
                        <td class="TableData" width="180"><input title="虚拟ERP" type="text" name="virturalErp" id="virturalErp" class="BigInput virturalErp" data-prompt-position="centerRight:5,-4" value=""></td>
                        <td nowrap="" class="TableData text_width test_text" >入职公司时间：</td>
                        <td class="TableData"  >
                            <input type="text" name="datesEmployed" title="入职公司时间" id="datesEmployed" size="10"  maxlength="10"  class="BigInput per_joinWork" value="" onclick="laydate({istime: true, format: 'YYYY-MM-DD',choose:function(dates){
                                var date=new Date();
                                var year=date.getTime();
                                var oldYear=Number(new Date(dates).getTime());
                                var time=(year-oldYear) / 1000 / 60 / 60 / 24 /365;
                                var times=time.toFixed(1);
                                times=Math.ceil(times)
                                $('.per_allage').val(times)
                            }})" >
                        </td>
                    </tr>


                    <tr>
                       <td nowrap="" class="TableData test_text" >采销姓名：</td>
                        <td class="TableData" width="180"><input type="text" title="采销姓名" name="adoptPinName" id="adoptPinName" class="BigInput adoptPinName test_text" data-prompt-position="centerRight:5,-4" value=""><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>
                            <%--<a href="javascript:;" id="addSales">添加</a>
                            <a href="javascript:;" id="clearSales">清除</a>--%>
                        </td>
                    </tr>


                    <tr>
                        <td nowrap="" class="TableHeader" colspan="4"><b>&nbsp;<fmt:message code="hr.th.educationalBackground" />：</b>
                            <a href="javascript:;" id="addEdu" style="float:right;margin-right:20px;">添加</a>
                        </td>
                    </tr>


                   <tr>
                       <td colspan="4" class="addEdu">
                           <table class="edu" style="width:100%">
                               <tr>
                                   <td nowrap="" class="TableData text_width test_text"  >学历：</td>
                                   <td class="TableData" width="180" >
                                       <select style="width:210px;" name="staffSchool" class="BigSelect per_xueli staffSchool" >
                                           <option value="" selected=""></option>
                                           <option value="1"><fmt:message code="vote.hr.1" /></option>
                                           <option value="2"><fmt:message code="vote.hr.2" /></option>
                                           <option value="3"><fmt:message code="vote.hr.3" /></option>
                                           <option value="4"><fmt:message code="vote.hr.4" /></option>
                                           <option value="5"><fmt:message code="vote.hr.5" /></option>
                                           <option value="6"><fmt:message code="vote.hr.6" /></option>
                                           <option value="7"><fmt:message code="vote.hr.7" /></option>
                                           <option value="8"><fmt:message code="vote.hr.8" /></option>
                                           <option value="9"><fmt:message code="vote.hr.9" /></option>
                                           <option value="11"><fmt:message code="vote.hr.10" /></option>
                                       </select>
                                   </td>
                                   <td nowrap="" class="TableData text_width"  >学位：</td>
                                   <td class="TableData" colspan="3" >
                                       <select style="width:210px;" name="staffDegree" class="BigSelect per_xuewei staffDegree" >
                                           <option value="" selected=""></option>
                                           <option value="1"><fmt:message code="vote.hr.9" /></option>
                                           <option value="2"><fmt:message code="vote.hr.8" /></option>
                                           <option value="3">MBA</option>
                                           <option value="4"><fmt:message code="vote.hr.13" /></option>
                                           <option value="5"><fmt:message code="vote.hr.12" /></option>
                                           <option value="6"><fmt:message code="vote.hr.11" /></option>
                                           <option value="7"><fmt:message code="event.th.nothing" /></option>
                                       </select>
                                       <span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>
                                   </td>
                               </tr>
                               <tr>
                                   <td nowrap="" class="TableData text_width"  >毕业时间：</td>
                                   <td class="TableData" width="180" >
                                       <input type="text" name="graduationDate" size="10" maxlength="10" class="BigInput per_overtime graduationDate" value="" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>
                                   </td>
                                   <td nowrap="" class="TableData text_width" >入学时间：</td>
                                   <td class="TableData" colspan="3"><input type="text" name="entranceDate" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" value="" class="BigInput per_shuiping entranceDate"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>
                               </tr>
                               <tr>
                                   <td nowrap="" class="TableData text_width" >毕业学校：</td>
                                   <td class="TableData" width="180"><input type="text" name="graduationSchool" value="" class="BigInput per_school graduationSchool"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>
                                   <td nowrap="" class="TableData text_width" >专业：</td>
                                   <td class="TableData" colspan="3"><input type="text" name="staffMajor" value="" class="BigInput per_zhuanye staffMajor"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>

                               </tr>
                           </table>
                           <%--<div class="hideEdu" style="height:0px"></div>--%>
                       </td>
                   </tr>
                    <%--<tr class="hideEdu" style="height:0px"></tr>--%>




                    <tr>
                        <td nowrap="" class="TableHeader" colspan="4"><b>&nbsp;工作经历：</b>
                            <a href="javascript:;" id="addWork" style="float:right;margin-right:20px;">添加</a></td>

                    </tr>

                    <tr>
                        <td class="TableData " style="text-align: center">工作时间</td>
                        <td class="TableData " style="text-align: center">工作单位</td>
                        <td class="TableData " style="text-align: center">工作岗位</td>
                        <td class="TableData " style="text-align: center">工作职责</td>
                    </tr>

                    <tr class="work">
                        <td class="TableData " style="text-align: center"><input type="text" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" name="jobBeginning" class="jobBeginning" style="width:44%;float:left"><span style="float:left">~</span><input name="jobEnd" class="jobEnd" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" type="text" style="width:44%;float:left"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>
                        <td class="TableData " style="text-align: center"><input type="text" name="workUnit" class="workUnit" style="width:80%;margin-left:10%"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>
                        <td class="TableData " style="text-align: center"><input type="text" name="workPost" class="workPost" style="width:80%;margin-left:10%"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>
                        <td class="TableData " style="text-align: center"><input type="text" name="workDuty" class="workDuty" style="width:80%;margin-left:0%"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;float:left">*</span></td>
                    </tr>
                    <tr class="hideWork" style="height:0px;"></tr>

                    <tr>
                        <td nowrap="" class="TableHeader" colspan="4"><b>&nbsp;附件上传：</b></td>

                    </tr>
                    <tr class="filetrs">
                    <td style="padding-left: 10px;vertical-align: top;">保密协议上传<span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>：</td>
                    <td class="files" style="position: relative">
                        <div id="SecrecyAttachment" class="Attachment"></div>
                        <!-- <fmt:message code="email.th.addfile" /> -->
                        <form id="uploadimgform" style="float: left;margin-bottom: 13px;" target="uploadiframe" class="forms"  action="/upload?module=hr_staffinfo"  method="post" >
                            <input type="file" multiple="multiple" name="file"  id="attachmentSecrecy"  class="w-icon5" style="position: absolute;opacity: 0;width: 70px;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0)">
                            <a href="#" id="uploadSecrecy"><img style="margin-right:5px;" src="/img/icon_uplod.png"/><fmt:message code="global.th.fileup" /></a>

                        <%--<a href="javascript:;" onclick="formFile()" style="float: left;margin: 0 15px;"><img style="margin-right:5px;" src="../img/icon_uplod.png"/>从文件柜选择附件</a>--%>
                        <%--<div id="progress" style="width: 200px;float: left;margin-left: 10px;margin-top: 2px;">--%>
                            <%--<div class="bar" style="width: 0%;"></div>--%>
                        <%--</div>--%>
                        <%--<div class="barText" style="float: left;margin-left: 10px;"></div>--%>
                    </td>
                    </tr>

                    <%--<tr class="filetrs">--%>
                        <%--<td style="padding-left: 10px;vertical-align: top;">京东供应商驻场合作协议上传<span style="color: #FF0000;font-size: 16px;">*</span>：</td>--%>
                        <%--<td class="files" style="position: relative">--%>
                            <%--<div id="JdsupplierAttachment" class="Attachment"></div>--%>
                            <%--<!-- <fmt:message code="email.th.addfile" /> -->--%>
                            <%--<form id="uploadimgform" style="float: left;margin-bottom: 13px;" target="uploadiframe" class="forms"  action="/upload?module=hr_staffinfo"  method="post" >--%>
                                <%--<input type="file" multiple="multiple" name="file"  id="attachmentJdsupplier"  class="w-icon5" style="position: absolute;opacity: 0;width: 70px;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0)">--%>
                                <%--<a href="#" id="uploadJdsupplier"><img style="margin-right:5px;" src="/img/icon_uplod.png"/><fmt:message code="global.th.fileup" /></a>--%>
                            <%--</form>--%>
                            <%--&lt;%&ndash;<a href="javascript:;" onclick="formFile()" style="float: left;margin: 0 15px;"><img style="margin-right:5px;" src="../img/icon_uplod.png"/>从文件柜选择附件</a>&ndash;%&gt;--%>
                            <%--&lt;%&ndash;<div id="progress" style="width: 200px;float: left;margin-left: 10px;margin-top: 2px;">&ndash;%&gt;--%>
                                <%--&lt;%&ndash;<div class="bar" style="width: 0%;"></div>&ndash;%&gt;--%>
                            <%--&lt;%&ndash;</div>&ndash;%&gt;--%>
                            <%--&lt;%&ndash;<div class="barText" style="float: left;margin-left: 10px;"></div>&ndash;%&gt;--%>
                        <%--</td>--%>
                    <%--</tr>--%>
                    <tr class="filetrs">
                        <td style="padding-left: 10px;vertical-align: top;">授权委托书上传<span style="color: #FF0000;font-size: 16px;">*</span>：</td>
                        <td class="files" style="position: relative">
                            <div id="AttorneyAttachment" class="Attachment"></div>
                            <!-- <fmt:message code="email.th.addfile" /> -->
                            <form id="uploadimgform" style="float: left;margin-bottom: 13px;" class="forms" target="uploadiframe"  action="/upload?module=hr_staffinfo"  method="post" >
                                <input type="file" multiple="multiple" name="file"  id="attachmentAttorney"  class="w-icon5" style="position: absolute;opacity: 0;width: 70px;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0)">
                                <a href="#" id="uploadAttorney"><img style="margin-right:5px;" src="/img/icon_uplod.png"/><fmt:message code="global.th.fileup" /></a>
                            </form>
                            <%--<a href="javascript:;" onclick="formFile()" style="float: left;margin: 0 15px;"><img style="margin-right:5px;" src="../img/icon_uplod.png"/>从文件柜选择附件</a>--%>
                            <%--<div id="progress" style="width: 200px;float: left;margin-left: 10px;margin-top: 2px;">--%>
                                <%--<div class="bar" style="width: 0%;"></div>--%>
                            <%--</div>--%>
                            <%--<div class="barText" style="float: left;margin-left: 10px;"></div>--%>
                        </td>
                    </tr>
                    <tr class="filetrs">
                        <td style="padding-left: 10px;vertical-align: top;">本人身份证正反面上传<span style="color: #FF0000;font-size: 16px;">*</span>：</td>
                        <td class="files" style="position: relative">
                            <div id="SupplierAttachment" class="Attachment"></div>
                            <!-- <fmt:message code="email.th.addfile" /> -->
                            <form id="uploadimgform" style="float: left;margin-bottom: 13px;" class="forms" target="uploadiframe"  action="/upload?module=hr_staffinfo"  method="post" >
                                <input type="file" multiple="multiple" name="file"  id="attachmentSupplier"  class="w-icon5" style="position: absolute;opacity: 0;width: 70px;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0)">
                                <a href="#" id="uploadSupplier"><img style="margin-right:5px;" src="/img/icon_uplod.png"/><fmt:message code="global.th.fileup" /></a>
                            </form>
                            <%--<a href="javascript:;" onclick="formFile()" style="float: left;margin: 0 15px;"><img style="margin-right:5px;" src="../img/icon_uplod.png"/>从文件柜选择附件</a>--%>
                            <%--<div id="progress" style="width: 200px;float: left;margin-left: 10px;margin-top: 2px;">--%>
                            <%--<div class="bar" style="width: 0%;"></div>--%>
                            <%--</div>--%>
                            <%--<div class="barText" style="float: left;margin-left: 10px;"></div>--%>
                        </td>
                    </tr>
                    <tr class="beforeFile">
                        <td></td>
                        <td style="padding-left: 10px;" >备注：以上协议需加盖公章</td>

                    </tr>

<input type="hidden" value="" id="state">
                    <input type="hidden" value="" id="staffId">
                </table>

                <div class="box_two foot_mg">
                    <div class="btn_" style="float: left;">
                        <%--<span id="add_send" value="1" type="publish" onclick="addClick()" class="fot_1 btn_ok" ac="edit"><fmt:message code="global.lang.save" /></span>--%>
                            <span id="add_send" value="1" type="publish" onclick="addClick()" class="fot_1 btn_ok" ac="edit">注册</span>
                        <%--<div id="leave_send" value="0" type="save" class="btn_style btn_ok leave_send"><fmt:message code="hr.th.Quit" /></div>--%>
                        <%--<div id="transaver_send" value="0" type="save" class="btn_style btn_ok transaver_send">调转</div>--%>
                        <%--<div id="rs" type="save" class="btn_return"><fmt:message code="notice.th.return" /></div>--%>
                            <span id="update" type="save" class="btn_return div-inline " onclick="updateClick()" style="display: inline-block" >更新保存

                        </span>
                        <span id="rs1" type="save" class="btn_return div-inline stateyes" style="float: left;display: none " >通过

                        </span>
                        <span id="rs2" type="save" class="btn_return div-inline stateno" style="display: none " >驳回

                        </span>
                        <span id="rs3" type="save" class="btn_return div-inline " style="display: inline-block" >返回

                        </span>

                    </div>
                </div>

            </div>
    </div>
</div>
</div>


<script>

        //列表中的复选框,页面刷新前走
         $(function () {
        $('.childQuery').on('click', '#checkedAll', function () {
            var state = $(this).prop("checked");
            if (state == true) {
                $(this).prop("checked", true);
                $(".checkChild").prop("checked", true);
            } else {
                $(this).prop("checked", false);
                $(".checkChild").prop("checked", false);
            }
        })
        $('.TableBlock').on('click','.deImgs',function () {
            var att = $(this);
            layer.confirm('<fmt:message code="workflow.th.que" />？', {
                btn: ['<fmt:message code="global.lang.ok" />','<fmt:message code="depatement.th.quxiao" />'], //按钮
                title:"<fmt:message code="notice.th.DeleteAttachment" />"
            }, function(){
                //确定删除
                att.parent().remove();
                layer.msg('<fmt:message code="workflow.th.delsucess" />', { icon:6});

            }, function(){
                layer.closeAll();
            });

        });


        //品类下拉框
//        $.ajax({
//            type: 'get',
//            url: '/hr/staffEntry/selectCategory',
//            dataType: 'json',
//            success: function (obj) {
//                var data=obj.obj;
//                str="<option value=''>请选择品类</option>";
//                if(obj.flag){
//                    for(var i=0;i<data.length;i++){
//                        str+="<option value='"+data[i].codeNo+"'>"+data[i].codeName+"</option>";
//                    }
//                }
//                $('[name="category"]').html(str);
//
//            }
//        });




        //岗位下拉列表
        $.ajax({
            type: 'get',
            url: '/hr/staffEntry/selectWordJob',
            dataType: 'json',
            success: function (obj) {
                var data=obj.obj;
                str="<option value=''>请选择岗位</option>";
                if(obj.flag){
                    for(var i=0;i<data.length;i++){
                        str+="<option value='"+data[i].codeNo+"'>"+data[i].codeName+"</option>";
                    }
                }
                $(".per_yingpin").html(str);
            }
        });

             //品牌下拉框数据根据品类数据展现
//             var codeNo;
//             $('#category').change(function () {
//                 codeNo=$('#category option:checked').val()
//                 console.log(codeNo)
//                 $.ajax({
//                     type: 'get',
//                     url: '/hr/staffEntry/selectBrand',
//                     data:{
//                         codeNo:codeNo
//                     },
//                     dataType: 'json',
//                     success: function (obj) {
//                         var data=obj.obj;
//                         str=" <option value=''>请选择品牌</option>";
//                         if(obj.flag){
//                             for(var i=0;i<data.length;i++){
//                                 str+="<option value='"+data[i].codeNo+"'>"+data[i].codeName+"</option>";
//                             }
//                         }
//                         $('[name="brand"]').html(str);
//                     }
//                 });
//             })

    })


    var duanxin='';
    var curCount=60;
    var InterValObj = ''
    var id=GetQueryString('id');
    var uid=GetQueryString('uid');
    var type=GetQueryString('type');
    var bodyId=GetQueryString('bodyId');
    var url=window.location.href;





    if(url.indexOf('login')!=-1){
        $('#rs1').hide();
        $('#rs2').hide();
        $('#update').hide();
    }
    function getFile(obj){
        $('.filetrs').remove();
        $.ajax({
            url:'/code/getCode?parentNo=HR_ATTACHMENTS',
            type:'get',
            success:function(res){
                if(res.obj.length>0){
                    var data = res.obj;
                    var str = ''
                    for(var i=0;i<data.length;i++){
                        str+= ' <tr class="filetrs" codeNo="'+data[i].codeNo+'">\n' +
                            '                        <td style="padding-left: 10px;vertical-align: top;">'+data[i].codeName+'<span style="color: #FF0000;font-size: 16px;"></span>：</td>\n' +
                            '                        <td class="files" style="position: relative">\n' +
                            '                            <div id="Attachment'+i+'" class="Attachment"></div>\n' +
                            '                            <!-- <fmt:message code="email.th.addfile" /> -->\n' +
                            '                            <form id="uploadimgform" style="float: left;margin-bottom: 13px;" class="forms" target="uploadiframe"  action="/upload?module=hr_staffinfo"  method="post" >\n' +
                            '                                <input type="file" multiple="multiple" name="file"  id="attachupload'+i+'"  class="w-icon5" style="position: absolute;opacity: 0;width: 70px;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0)">\n' +
                            '                                <a href="#" id="upload'+i+'"><img style="margin-right:5px;" src="/img/icon_uplod.png"/><fmt:message code="global.th.fileup" /></a>\n' +function () {
                                                                if(data[i].codeName1==undefined){
                                                                    return ''
                                                                }else{
                                                                    return '<a href="'+data[i].codeName1+'" style="margin-left: 20px;"><img style="margin-right:5px;" src="/img/document/word_aip/icon_download_07.png"/>点击下载模板</a>\n'
                                                                }
                            }()+'                            </form>\n' +
                            '                        </td>\n' +
                            '                    </tr>'
                    }
                    $('.beforeFile').before(str)
                    for(var j=0;j<$('.filetrs').length;j++){
                        fileuploadFn("#attachupload"+j,$('#Attachment'+j),1);
                    }

                }
            }
        })
    }
    getFile()

    if(bodyId!=undefined||type=='detail'||id!=undefined){
        // console.log(11)
        $('.deImgs').hide();
        $('.uploadPhoto').hide();
        $('#addEdu').hide();
        $('#addWork').hide();
        /*$('#add').hide();
        $('#clear').hide();*/
        $('.clearEdu').hide()
        $('.clearWork').hide()
        $('#rs1').hide()
        $('#rs2').hide()
        $('#attachmentSupplier').hide();
       $('#uploadJdsupplier').hide();
        $('#uploadAttorney').hide();
        $('#uploadSupplier').hide();
     //   uploadAttorney
      // $('input[name="file"]').hide();
//$('#forms').hide();
       // document.getElementById('uploadimgform').style.display='none';

         // $('#uploadimgform').hide();
    }
    $('#addWork').click(function(){
        var tr=' <tr class="work">\n' +
            '                        <td class="TableData " style="text-align: center"><input type="text" onclick="laydate({istime: true, format: \'YYYY-MM-DD\'})" name="jobBeginning" class="jobBeginning" style="width:44%;float:left"><span style="float:left">~</span><input name="jobEnd" class="jobEnd" onclick="laydate({istime: true, format: \'YYYY-MM-DD\'})" type="text" style="width:44%;float:left"><span style="color: #FF0000;font-size: 16px;">*</span></td>\n' +
            '                        <td class="TableData " style="text-align: center"><input type="text" name="workUnit" class="workUnit" style="width:80%;margin-left:10%"><span style="color: #FF0000;font-size: 16px;">*</span></td>\n' +
            '                        <td class="TableData " style="text-align: center"><input type="text" name="workPost" class="workPost" style="width:80%;margin-left:10%"><span style="color: #FF0000;font-size: 16px;">*</span></td>\n' +
            '                        <td class="TableData " style="text-align: center"><input type="text" name="workDuty" class="workDuty" style="width:80%;margin-left:0%"><span style="color: #FF0000;font-size: 16px;float: left;">*</span><a href="javascript:;" class="clearWork">清除</a></td>\n' +
            '                    </tr>'
        $('.hideWork').before(tr)
    })
    $(document).on('click', '.stateyes', function () {
        //id = $(this).attr('id');
        // var state=$(this).attr('state');
        //   var data1=$(this).attr('data');
        //tel = $(this).attr('tel');
        //var deptId=$(this).attr('deptId');
        var state=$('#state').val();
        var id=$('#staffId').val();
        $.ajax({
            url: "/hr/staffEntry/auditUpdate",
            type: "post",
            data:{
                'auditState':Number(state)+Number(1),
                id:id,
                //   deptId:deptId
                //deptId:4
            },
            dataType: 'json',
            success: function (res) {
                $(document.getElementById("rs1")).hide();
                $(document.getElementById("rs2")).hide();
                if (res.flag) {
                    layer.msg(res.msg,{icon:6},function (index) {
                        layer.close(index);
                     //   ajaxTable();
                        $(document.getElementById("rs1")).hide();
                        $(document.getElementById("rs2")).hide();
                    })
                }
                else {
                    layer.msg(res.msg,{icon:5},function (index) {
                        layer.close(index);
                        $('#rs1').hide();
                        $('#rs2').hide();
                       // ajaxTable();
                        //opener.pageObj.init()
                        // parent.pageObj.init()
                    })
                }
            },
            error:function () {
                layer.msg(res.msg,{icon:5},function (index) {
                    //opener.pageObj.init()
                //    ajaxTable();
                layer.close(index);
                    $('#rs1').hide();
                    $('#rs2').hide();
                })
            }

        })
        //if(state==4){
        // $.popWindow("../common/selectDept?introduction=true");
        /*
          $.ajax({
              url: "/hr/staffEntry/auditUpdate",
              type: "get",
              data:{
                  'auditState':2,
                  id:id,
                  tel:tel

              },
              dataType: 'json',
              success: function (res) {
                  if (res.flag) {
                      layer.msg(res.msg,{icon:6},function () {
                          pageObj.init()
                      })
                  }
                  else {
                      layer.msg(res.msg,{icon:5},function () {
                         // pageObj.init()
                      })
                  }
              }
          })
          */
        //$.popWindow("DimissionDetail?ids="+ids,'员工入职详细信息','0','0','1200px','600px');
        // }
    })
    $(document).on('click', '.stateno', function () {
        var id=$('#staffId').val();
        layer.open({
            content: '确定退回？',
            btn: ['确定', '取消'],
            yes: function (index, layero) {
                layer.open({
                    type: 1,
                    title: '退回原因',
                    //skin: 'layui-layer-rim', //加上边框
                    area: ['690px', '400px'], //宽高
                    btn: ['确定'], //按钮
                    content: '<textarea style="width:600px;margin: 40px;height: 210px" name="university" id="university" cols="84" rows="4" class="BigInput" value=""></textarea>',
                    yes: function (index) {
                        var user = '';
                        if(userPriv=='6'){
                            user=2
                        }
                        else if(userPriv=='4'){
                            user=3
                        }
                        else if(userPriv=='5'){
                            user=4
                        }
                        else if(userPriv=='10'){
                            user=5
                        }else if(userPriv=='2'){
                            user=6
                        }else if(userId=='152'){
                            user=7
                        }

                        $.ajax({
                            url: '/hr/staffEntry/auditUpdate',
                            type: 'post',
                            data: {
                                auditState: user + ',8',
                                id: id,
                               // deptId: null,
                                msg: $('#university').val()
                            },
                            dataType: 'json',
                            success: function (res) {
                                layer.close(index);
                                $(document.getElementById("rs1")).hide();
                                $(document.getElementById("rs2")).hide();
                                if (res.flag) {
                                    layer.msg(res.msg, {icon: 6}, function () {
                                        ajaxTable();
                                    })
                                } else {
                                    layer.msg(res.msg, {icon: 5}, function () {
                                        ajaxTable();
                                    })
                                }
                            }
                        })
                    }
                });


            }
            , btn2: function (index, layero) {
                layer.closeAll();
                //return false 开启该代码可禁止点击该按钮关闭
            }
            , cancel: function () {
                //右上角关闭回调
                //return false 开启该代码可禁止点击该按钮关闭
            }
        });
        //  $.popWindow("DimissionDetail?ids="+ids,'员工入职详细信息','0','0','1200px','600px');
    })
    $('#rs3').click(function () {
       if(url.indexOf('login')!=-1) {
           window.location.href = window.location.protocol + '//' + window.location.host + '/'
       }else {
           window.close();
       }})
    $('#addEdu').click(function(){
        var tr='<table class="edu" style="width:100%">\n' +
            '                               <tr>\n' +
            '                                   <td nowrap="" class="TableData text_width test_text"  >学历：</td>\n' +
            '                                   <td class="TableData" width="180" >\n' +
            '                                       <select style="width:210px;" name="staffSchool" class="BigSelect per_xueli staffSchool" >\n' +
            '                                           <option value="" selected=""></option>\n' +
            '                                           <option value="1"><fmt:message code="vote.hr.1" /></option>\n' +
            '                                           <option value="2"><fmt:message code="vote.hr.2" /></option>\n' +
            '                                           <option value="3"><fmt:message code="vote.hr.3" /></option>\n' +
            '                                           <option value="4"><fmt:message code="vote.hr.4" /></option>\n' +
            '                                           <option value="5"><fmt:message code="vote.hr.5" /></option>\n' +
            '                                           <option value="6"><fmt:message code="vote.hr.6" /></option>\n' +
            '                                           <option value="7"><fmt:message code="vote.hr.7" /></option>\n' +
            '                                           <option value="8"><fmt:message code="vote.hr.8" /></option>\n' +
            '                                           <option value="9"><fmt:message code="vote.hr.9" /></option>\n' +
            '                                           <option value="11"><fmt:message code="vote.hr.10" /></option>\n' +
            '                                       </select>\n' +
            '                                   </td>\n' +
            '                                   <td nowrap="" class="TableData text_width"  >学位：</td>\n' +
            '                                   <td class="TableData" colspan="3" style="position:relative">\n' +
            '                                       <select style="width:210px;" name="staffDegree" class="BigSelect per_xuewei staffDegree" >\n' +
            '                                           <option value="" selected=""></option>\n' +
            '                                           <option value="1"><fmt:message code="vote.hr.9" /></option>\n' +
            '                                           <option value="2"><fmt:message code="vote.hr.8" /></option>\n' +
            '                                           <option value="3">MBA</option>\n' +
            '                                           <option value="4"><fmt:message code="vote.hr.13" /></option>\n' +
            '                                           <option value="5"><fmt:message code="vote.hr.12" /></option>\n' +
            '                                           <option value="6"><fmt:message code="vote.hr.11" /></option>\n' +
            '                                           <option value="7"><fmt:message code="event.th.nothing" /></option>\n' +
            '                                       </select>\n' +
            '                                       <span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span><a href="javascript:;" class="clearEdu" style="position: absolute;right: 20px;">清除</a>\n' +

            '                                   </td>\n' +
            '                               </tr>\n' +
            '                               <tr>\n' +
            '                                   <td nowrap="" class="TableData text_width"  >毕业时间：</td>\n' +
            '                                   <td class="TableData" width="180" >\n' +
            '                                       <input type="text" name="graduationDate" size="10" maxlength="10" class="BigInput per_overtime graduationDate" value="" onclick="laydate({istime: true, format: \'YYYY-MM-DD\'})"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>\n' +
            '                                   </td>\n' +
            '                                   <td nowrap="" class="TableData text_width" >入学时间：</td>\n' +
            '                                   <td class="TableData" colspan="3"><input type="text" name="entranceDate" onclick="laydate({istime: true, format: \'YYYY-MM-DD\'})" value="" class="BigInput per_shuiping entranceDate"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>\n' +
            '                               </tr>\n' +
            '                               <tr>\n' +
            '                                   <td nowrap="" class="TableData text_width" >毕业学校：</td>\n' +
            '                                   <td class="TableData" width="180"><input type="text" name="graduationSchool" value="" class="BigInput per_school graduationSchool"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>\n' +
            '                                   <td nowrap="" class="TableData text_width" >专业：</td>\n' +
            '                                   <td class="TableData" colspan="3"><input type="text" name="staffMajor" value="" class="BigInput per_zhuanye staffMajor"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>\n' +
            '\n' +
            '                               </tr>\n' +
            '                           </table>'

        $('.addEdu').append(tr)
    })
    $(document).on('click','.clearEdu',function(){
        $(this).parents('.edu').remove()
    })
    $(document).on('click','.clearWork',function(){
        $(this).parents('.work').remove()
    })

    //添加部门
    $('#add').click(function () {
        dept_id='deptId'
        $.popWindow("../common/selectDept?0");
    })
    //添加人员
    /*$('#addSales').click(function () {
        user_id='adoptPinName'
       $.popWindow("../common/selectUser?0");
    })
    $('#clearSales').click(function () {
        $('#adoptPinName').val('')
        $('#adoptPinName').attr('username','')
        $('#adoptPinName').attr('user_id','')
        $('#adoptPinName').attr('userprivname','')
        $('#adoptPinName').attr('dataid','')
        $('#adoptPinName').attr('deptid','')
    })*/
    $('#clear').click(function () {
        $('#deptId').val('')
        $('#deptId').attr('deptname','')
        $('#deptId').attr('deptid','')
        $('#deptId').attr('deptno','')
    })
    $('#rs').click(function(){
        window.close();
    })
    //获取省市
    var sheng = '<option value="">请选择</option>'
    for(var i=0;i<json.provinces.length;i++){
        sheng += '<option value="'+json.provinces[i].name+'">'+json.provinces[i].name+'</option>'
    }
    $('#sheng').html(sheng);
    $('#sheng').change(function(){
        var prov = $(this).val();
        var citys = '<option value="">请选择</option>'
        for(var i=0;i<json.provinces.length;i++){
            if(json.provinces[i].name == prov){

                if(json.provinces[i].citys!=""&&json.provinces[i].citys!=undefined){
                    for(var j=0;j<json.provinces[i].citys.length;j++){
                        citys += '<option value="'+json.provinces[i].citys[j]+'">'+json.provinces[i].citys[j]+'</option>'
                    }
                }
                //
            }
        }
        $('#city').html(citys);
        $('#staffNativePlace').val('')
    })
    $('#city').change(function(){
        if($(this).find('option:selected').text()!='请选择'){
            $('#staffNativePlace').val($('#sheng').find('option:selected').text()+','+$('#city').find('option:selected').text())
        }else{
            $('#staffNativePlace').val('')
        }
    })




    //上传图片
    $('#uploadPhoto').fileupload({
        dataType:'json',
        done: function (e, data) {
            if(data.result.obj != ''){
              var imgUrl = '/xs?'+data.result.obj[0].attUrl;
              $('.hr_photo').html('<img style="width:160px;height:157px;" src="'+imgUrl+'" />')
                $('#photoName').val(imgUrl)
            }else{
                //alert('添加附件大小不能为空!');
                layer.alert('添加附件大小不能为空!',{},function(){
                    layer.closeAll();
                });
            }
        }
    });

    //附件上传

    $('.Attachment').on('click','.deImgs',function(){
        var data=$(this).parents('.dech').attr('deUrl');
        var dome=$(this).parents('.dech');
        deleteChatment(data,dome);
    })
    //删除附件
    function deleteChatment(data,element){

        layer.confirm('<fmt:message code="workflow.th.que" />？', {
            btn: ['<fmt:message code="global.lang.ok" />','<fmt:message code="depatement.th.quxiao" />'], //按钮
            title:"<fmt:message code="notice.th.DeleteAttachment" />"
        }, function(){
            //确定删除，调接口
            $.ajax({
                type:'get',
                url:'/delete',
                dataType:'json',
                data:data,
                success:function(res){

                    if(res.flag == true){
                        layer.msg('<fmt:message code="workflow.th.delsucess" />', { icon:6});
                        element.remove();
                    }else{
                        layer.msg('<fmt:message code="lang.th.deleSucess" />', { icon:6});
                    }
                }
            });

        }, function(){
            layer.closeAll();
        });
    }


    /*保存*/
    function addClick() {

        if (checkNull()) {


        var list = [];
        for(var i=0;i<$('.filetrs').length;i++){
            var object={
                attachmentTypeNo:$('.filetrs').eq(i).attr('codeNo')
            }
            var attachmentId='',attachmentName=''
            for(var j=0;j<$('.filetrs').eq(i).find('.inHidden').length;j++){
                attachmentId += $('.filetrs').eq(i).find('.inHidden').eq(j).val();
                attachmentName += $('.filetrs').eq(i).find('.inHidden').eq(j).parent().find('a').attr('name')
            }
            object.attachmentId = attachmentId ;
            object.attachmentName = attachmentName;
            list.push(object)
        }


        var arr=[];
        for(var h=0;h<$('.edu').length;h++){
            var obj={
                staffSchool:$('.edu').eq(h).find('.staffSchool').val(),
                staffDegree:$('.edu').eq(h).find('.staffDegree').val(),
                staffMajor:$('.edu').eq(h).find('.staffMajor').val(),
                entranceDate:$('.edu').eq(h).find('.entranceDate').val(),
                graduationDate:$('.edu').eq(h).find('.graduationDate').val(),
                graduationSchool:$('.edu').eq(h).find('.graduationSchool').val()
            }
            if(type == 'edit'){
                obj.eid = $('.edu').eq(h).attr('eid')
                obj.id = $('.edu').eq(h).attr('id')
            }
            arr.push(obj)
        }


        var arr2=[];
            for(var x=0;x<$('.work').length;x++){
                var obj2={
                    jobBeginning:$('.work').eq(x).find('.jobBeginning').val(),
                    jobEnd:$('.work').eq(x).find('.jobEnd').val(),
                    workUnit:$('.work').eq(x).find('.workUnit').val(),
                    workPost:$('.work').eq(x).find('.workPost').val(),
                    workDuty:$('.work').eq(x).find('.workDuty').val()
                }
                if(type == 'edit'){
                    obj2.eid = $('.work').eq(x).attr('eid')
                    obj2.id = $('.work').eq(x).attr('id')
                }
                arr2.push(obj2)
            }
        var hrStaffEntryWithBLOBs = {
            staffName: $('#staffName').val(),//姓名
            photoName: $('#photoName').val(),//图片
            staffPhone: $('#staffPhone').val(),//联系电话
            deptId: $('#deptId').attr('deptId'),//部门
            staffPoliticalStatus: $('#staffPoliticalStatus').val(),//政治面貌
            staffSex: $('#staffSex').val(),//性别
            // staffDomicilePlace: $('#staffDomicilePlace').val(),//户口所在地
            staffCardNo: $('#staffCardNo').val(),//身份证号
            staffBirth: $('#staffBirth').val(),//出生年月
            isLunar: $('#isLunar').is('checked') ? 1 : 0,//是农历生日
            staffAge: $('#staffAge').val(),//年龄
            height: $('#height').val(),//身高
            staffNativePlace: $('#staffNativePlace').val(),//籍贯
            staffNativePlace2: $('#staffNativePlace2').val(),//详细地址
            bloodType: $('#bloodType').val(),//血型
            staffMaritalStatus: $('#staffMaritalStatus').val(),//婚姻状况
            staffNationality: $('#staffNationality').val(),//民族
            staffSkills: $('#staffSkills').val(),//特长
            computerLevel: $('#computerLevel').val(),//计算机水平

//            brand: $('#brand').val(),//品牌
            workJob: $('#workJob').val(),//岗位
//            category: $('#category').val(),//品类
            homeAddress: $('#homeAddress').val(),//家庭地址
            staffEmail: $('#staffEmail').val(),//电子邮件
            virturalErp: $('#virturalErp').val(),//虚拟ERP

            otherContact: $('#otherContact').val(),//其他联系方式

            // adoptPinId: $('#adoptPinName').attr('dataid').replace(/,/g,''),//采销id
            adoptPinName: $('#adoptPinName').val(),//采销名称

            hrStaffEntryEducationList:arr,
            hrStaffEntryExperienceList:arr2,
            attachmentStr:JSON.stringify(list)
        }


        if(type=='edit'){
               var url = '/hr/api/editPersonFile'
            hrStaffEntryWithBLOBs.datesEmployed=$('#datesBrandEmployed').val();//入职品牌方时间
            hrStaffEntryWithBLOBs.JobBeginning=$('#datesEmployed').val();//入职京东时间
            hrStaffEntryWithBLOBs.staffMsn= $('#jdEmail').val();//京东邮箱

            hrStaffEntryWithBLOBs.uid=uid
            //hrStaffEntryWithBLOBs.userId=$('#staffName').attr('userId')
            // hrStaffEntryWithBLOBs.attachmentId= attachmentSecrecyId;//保密协议上传Id
            // hrStaffEntryWithBLOBs.attachmentName= attachmentSecrecy;//保密协议上传
            // hrStaffEntryWithBLOBs.userdef2= attachmentSupplierId;//供应商营业执照复印件上传Id
            // hrStaffEntryWithBLOBs.userdef1= attachmentSupplier;//供应商营业执照复印件上传
            // hrStaffEntryWithBLOBs.userdef4=attachmentJdsupplierId;//京东供应商驻场合作协议上传Id
            // hrStaffEntryWithBLOBs.userdef3= attachmentJdsupplier;//京东供应商驻场合作协议上传
            // hrStaffEntryWithBLOBs.certificate= attachmentAttorneyId;//授权委托书上传Id
            // hrStaffEntryWithBLOBs.userdef5= attachmentAttorney;//授权委托书上传
        }else{
            hrStaffEntryWithBLOBs.datesBrandEmployed=$('#datesBrandEmployed').val();//入职品牌方时间
            hrStaffEntryWithBLOBs.datesEmployed=$('#datesEmployed').val();//入职京东时间
            hrStaffEntryWithBLOBs.jdEmail= $('#jdEmail').val();//京东邮箱
            // hrStaffEntryWithBLOBs.attachmentSecrecyId= attachmentSecrecyId;//保密协议上传Id
            //     hrStaffEntryWithBLOBs.attachmentSecrecy= attachmentSecrecy;//保密协议上传
            //     hrStaffEntryWithBLOBs.attachmentSupplierId= attachmentSupplierId;//供应商营业执照复印件上传Id
            //     hrStaffEntryWithBLOBs.attachmentSupplier= attachmentSupplier;//供应商营业执照复印件上传
            //     hrStaffEntryWithBLOBs.attachmentJdsupplierId=attachmentJdsupplierId;//京东供应商驻场合作协议上传Id
            //     hrStaffEntryWithBLOBs.attachmentJdsupplier= attachmentJdsupplier;//京东供应商驻场合作协议上传
            //     hrStaffEntryWithBLOBs.attachmentAttorneyId= attachmentAttorneyId;//授权委托书上传Id
            //     hrStaffEntryWithBLOBs.attachmentAttorney= attachmentAttorney;//授权委托书上传
            var url='/hr/staffEntry/insert'
        }
        $.ajax({
            type: 'post',
            url:url,
            contentType: 'application/json',
            dataType: 'json',
            data:JSON.stringify(hrStaffEntryWithBLOBs),
            success: function (res) {
                if(res.flag){
                    if(type=='edit'){
                        layer.msg('编辑成功！！！',{icon:1},function () {

                           // window.close();
                        });/*添加成功*/
                    }else{
                        layer.msg('注册成功！！！',{icon:1},function () {

                            window.location.href = '/personManagement/signSuccess'
                        });/*添加成功*/
                    }

                }else{
                    if(type=='edit'){
                        layer.msg('编辑失败！！！',{icon:2});
                    }else{
                        layer.msg(res.msg,{icon:2});
                    }

                }

            }
        })

    }
    }

    // 更新
        function updateClick() {
                if (checkNull()) {


                    var list = [];
                    for(var i=0;i<$('.filetrs').length;i++){
                        var object={
                            attachmentTypeNo:$('.filetrs').eq(i).attr('codeNo')
                        }
                        var attachmentId='',attachmentName=''
                        for(var j=0;j<$('.filetrs').eq(i).find('.inHidden').length;j++){
                            attachmentId += $('.filetrs').eq(i).find('.inHidden').eq(j).val();
                            attachmentName += $('.filetrs').eq(i).find('.inHidden').eq(j).parent().find('a').attr('name')
                        }
                        object.attachmentId = attachmentId ;
                        object.attachmentName = attachmentName;
                        list.push(object)
                    }


                    var arr=[];
                    for(var h=0;h<$('.edu').length;h++){
                        var obj={
                            staffSchool:$('.edu').eq(h).find('.staffSchool').val(),
                            staffDegree:$('.edu').eq(h).find('.staffDegree').val(),
                            staffMajor:$('.edu').eq(h).find('.staffMajor').val(),
                            entranceDate:$('.edu').eq(h).find('.entranceDate').val(),
                            graduationDate:$('.edu').eq(h).find('.graduationDate').val(),
                            graduationSchool:$('.edu').eq(h).find('.graduationSchool').val()
                        }
                        if(type == 'edit'){
                            obj.eid = $('.edu').eq(h).attr('eid')
                            obj.id = $('.edu').eq(h).attr('id')
                        }
                        arr.push(obj)
                    }


                    var arr2=[];
                    for(var x=0;x<$('.work').length;x++){
                        var obj2={
                            jobBeginning:$('.work').eq(x).find('.jobBeginning').val(),
                            jobEnd:$('.work').eq(x).find('.jobEnd').val(),
                            workUnit:$('.work').eq(x).find('.workUnit').val(),
                            workPost:$('.work').eq(x).find('.workPost').val(),
                            workDuty:$('.work').eq(x).find('.workDuty').val()
                        }
                        if(type == 'edit'){
                            obj2.eid = $('.work').eq(x).attr('eid')
                            obj2.id = $('.work').eq(x).attr('id')
                        }
                        arr2.push(obj2)
                    }
                    var hrStaffEntryWithBLOBs = {
                        id:id,
                        staffName: $('#staffName').val(),//姓名
                        photoName: $('#photoName').val(),//图片
                        staffPhone: $('#staffPhone').val(),//联系电话
                        deptId: $('#deptId').attr('deptId'),//部门
                        staffPoliticalStatus: $('#staffPoliticalStatus').val(),//政治面貌
                        staffSex: $('#staffSex').val(),//性别
                        // staffDomicilePlace: $('#staffDomicilePlace').val(),//户口所在地
                        staffCardNo: $('#staffCardNo').val(),//身份证号
                        staffBirth: $('#staffBirth').val(),//出生年月
                        isLunar: $('#isLunar').is('checked') ? 1 : 0,//是农历生日
                        staffAge: $('#staffAge').val(),//年龄
                        height: $('#height').val(),//身高
                        staffNativePlace: $('#staffNativePlace').val(),//籍贯
                        staffNativePlace2: $('#staffNativePlace2').val(),//详细地址
                        bloodType: $('#bloodType').val(),//血型
                        staffMaritalStatus: $('#staffMaritalStatus').val(),//婚姻状况
                        staffNationality: $('#staffNationality').val(),//民族
                        staffSkills: $('#staffSkills').val(),//特长
                        computerLevel: $('#computerLevel').val(),//计算机水平

//                        brand: $('#brand').val(),//品牌
                        workJob: $('#workJob').val(),//岗位
                        category: $('#category').val(),//品类
                        homeAddress: $('#homeAddress').val(),//家庭地址
                        staffEmail: $('#staffEmail').val(),//电子邮件
                        virturalErp: $('#virturalErp').val(),//虚拟ERP

                        otherContact: $('#otherContact').val(),//其他联系方式
                        adoptPinName: $('#adoptPinName').val(),// 采销

                        hrStaffEntryEducationList:arr,
                        hrStaffEntryExperienceList:arr2,
                        attachmentStr:JSON.stringify(list)
                    }
                    /*if($('#adoptPinName').attr('dataid')!=undefined&&$('#adoptPinName').attr('dataid').indexOf(",")>0){
                        hrStaffEntryWithBLOBs.adoptPinId = $('#adoptPinName').attr('dataid').replace(/,/g,'');
                    }*/
                    /*if($('#adoptPinName').attr('username')!=undefined&&$('#adoptPinName').attr('username').indexOf(",")>0){
                        hrStaffEntryWithBLOBs.adoptPinName= $('#adoptPinName').attr('username').replace(/,/g,'');
                    }*/



                    var url = '/hr/staffEntry/update';
                    hrStaffEntryWithBLOBs.datesEmployed=$('#datesBrandEmployed').val();//入职品牌方时间
                    hrStaffEntryWithBLOBs.JobBeginning=$('#datesEmployed').val();//入职京东时间
                    hrStaffEntryWithBLOBs.staffMsn= $('#jdEmail').val();//京东邮箱




                    $.ajax({
                        type: 'post',
                        url:url,
                        contentType: 'application/json',
                        dataType: 'json',
                        data:JSON.stringify(hrStaffEntryWithBLOBs),
                        success: function (res) {
                            if(res.flag){
                                    layer.msg('保存成功！',{icon:1},function () {
                                    });/*添加成功*/
                            }else{
                                layer.msg(res.msg,{icon:2});
                            }

                        }
                    })

                }
        }

    //非空判断
    function checkNull(){
        for(var c=0;c<$('#table_personDetail input').length;c++){
            if($('input').eq(c).attr('title')=='姓名'||$('input').eq(c).attr('title')=='联系电话'||$('input').eq(c).attr('title')=='部门'||$('input').eq(c).attr('title')=='上传照片'||$('input').eq(c).attr('title')=='身份证号'||$('input').eq(c).attr('title')=='入职品牌方时间'||$('input').eq(c).attr('title')=='其他联系方式'||$('input').eq(c).attr('title')=='采销姓名'||$('input').eq(c).attr('title')=='入职京东时间'||$('input').eq(c).attr('title')=='电子邮件'||$('input').eq(c).attr('title')=='虚拟ERP'||$('input').eq(c).attr('title')=='家庭地址'){
                if($('#table_personDetail input').eq(c).val()==''&&$('input').eq(c).attr('title')!=undefined){
                    $.layerMsg({content:$('input').eq(c).attr('title')+'不能为空',icon:2});
                    return false;
                }
            }
        }
        for(var y=0;y<$('#table_personDetail select').length;y++){
            if($('select').eq(y).attr('title')!='政治面貌'&&$('select').eq(y).attr('title')!='血型'&&$('select').eq(y).attr('title')!='婚姻状况'&&$('select').eq(y).attr('title')!='籍贯'){
                if($('#table_personDetail select').eq(y).val()==''&&$('select').eq(y).attr('title')!=undefined){
                    $.layerMsg({content:$('select').eq(y).attr('title')+'不能为空',icon:2});
                    return false;
                }
            }
        }
        //学历
        for(var a=0;a<$('#table_personDetail .staffSchool').length;a++){
            if($('#table_personDetail .staffSchool').eq(a).val()==''){
                $.layerMsg({content:'学历不能为空',icon:2});
                return false;
            }
        }

        //学位
        for(var b=0;b<$('#table_personDetail .staffDegree').length;b++){
            if($('#table_personDetail .staffDegree').eq(b).val()==''){
                $.layerMsg({content:'学位不能为空',icon:2});
                return false;
            }
        }

        //毕业时间
        for(var c=0;c<$('#table_personDetail .graduationDate').length;c++){
            if($('#table_personDetail .graduationDate').eq(c).val()==''){
                $.layerMsg({content:'毕业时间不能为空',icon:2});
                return false;
            }
        }

        //入学时间
        for(var d=0;d<$('#table_personDetail .entranceDate').length;d++){
            if($('#table_personDetail .entranceDate').eq(d).val()==''){
                $.layerMsg({content:'入学时间不能为空',icon:2});
                return false;
            }
        }

        //毕业学校
        for(var e=0;e<$('#table_personDetail .graduationSchool').length;e++){
            if($('#table_personDetail .graduationSchool').eq(e).val()==''){
                $.layerMsg({content:'毕业学校不能为空',icon:2});
                return false;
            }
        }

        //专业
        for(var f=0;f<$('#table_personDetail .staffMajor').length;f++){
            if($('#table_personDetail .staffMajor').eq(f).val()==''){
                $.layerMsg({content:'专业不能为空',icon:2});
                return false;
            }
        }

        // })
        //工作开始时间
        for(var h=0;h<$('#table_personDetail .jobBeginning').length;h++){
            if($('#table_personDetail .jobBeginning').eq(h).val()==''){
                $.layerMsg({content:'工作开始时间不能为空',icon:2});
                return false;
            }
        }

        //工作结束时间
        for(var l=0;l<$('#table_personDetail .jobEnd').length;l++){
            if($('#table_personDetail .jobEnd').eq(l).val()==''){
                $.layerMsg({content:'工作结束时间不能为空',icon:2});
                return false;
            }
        }

        //工作单位
        for(var m=0;m<$('#table_personDetail .workUnit').length;m++){
            if($('#table_personDetail .workUnit').eq(m).val()==''){
                $.layerMsg({content:'工作单位不能为空',icon:2});
                return false;
            }
        }

        //工作岗位
        for(var n=0;n<$('#table_personDetail .workPost').length;n++){
            if($('#table_personDetail .workPost').eq(n).val()==''){
                $.layerMsg({content:'工作岗位不能为空',icon:2});
                return false;
            }
        }

        //工作职责
        for(var o=0;o<$('#table_personDetail .workDuty').length;o++){
            if($('#table_personDetail .workDuty').eq(o).val()==''){
                $.layerMsg({content:'工作职责不能为空',icon:2});
                return false;
            }
        }
        for(var m=0;m<$('.filetrs').length;m++){
            if($('.filetrs').eq(m).find('.Attachment').html()==''){
                $.layerMsg({content:$('.filetrs').eq(m).find('td').eq(0).text()+'不能为空',icon:2});
                return false;
            }
        }


        return true;

    }

    function send(){
        $.ajax({
            url:'/hr/staffEntry/sendVerificationCode',
            dataType:"json",
            data:{staffPhone:$('[name="staffPhone"]').val()},
            type:'get',
            success:function(data){
                // console.log(data)
                // if(data.flag){
                    $.layerMsg({content:'发送成功'})
                    duanxin = data;
                    $("#downCheck").text(curCount + "秒后重新发送");
                    $("#downCheck").removeAttr("onclick");
                    InterValObj = window.setInterval(SetRemainTime, 1000);
                // }else{
                //     $.layerMsg({content:'发送失败'})
                // }
            }
        })
    }


    function SetRemainTime() {
        if (curCount == 1) {
            window.clearInterval(InterValObj);//停止计时器
            //$("#btnSendCode").removeAttr("disabled");//启用按钮
            $("#downCheck").attr("onclick","send();");
            $("#downCheck").text("点击验证");
            curCount=60
        }
        else {
            curCount--;
            $("#downCheck").text(curCount + "秒后重新发送");
        }
    }

    //    function turnZero(n){
    //        if(n=="0000-00-00"){
    //            return "";
    //        }else{
    //            return n;
    //        }
    //
    //    };








    //身份证号进行校验STAFF_CARD_NO
    function  check(){
        var cardId=$("#staffCardNo").val();
        var regIdNo = /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
        if(cardId!=''){
            if(!regIdNo.test(cardId)){
                layer.msg('请输入合法的身份证号码!', {icon: 2});
                return false;
            }
        }
    }

//    手机号验证
    function phone(){
        if($('input[name="staffPhone"]').val()!=''){
            if(!(/^1[34578]\d{9}$/.test($('input[name="staffPhone"]').val()))){
                $.layerMsg({content:'手机号格式错误'});
                return false;
            }else{
                return true;
            }
        }

    }
    $('input[name="staffPhone"]').blur(function(){
        phone()
    })
    $('#check').blur(function(){
        if($(this).val()!=duanxin){
            $.layerMsg({content:'验证码不正确',icon:2});
            return false;
        }
    })

    // 用正则表达式获取地址栏参数
    function GetQueryString(name) {
        var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);

        if(r!=null) {
            return  unescape(r[2]);
        } else {
            return null;
        }
    }
    function selectVal(n,val){
        if(n==val){
            return true
        }else{
            return false
        }
    }
    function checkVal(name){
        if(name==undefined){
            return ''
        }else {
            return name
        }
    }
 ///   if(bodyId!=undefined){

    //    $('#rs1').show();
      //  $('#rs2').show();

    //}

   //页面刷新完执行
   window.onload=function(){
       if(uid!=undefined){
           document.title='人事档案信息'
           $("#downCheck").hide();
           if(type=='detail'){
               $('#add_send').hide();
               $('#rs1').hide()
               $('#rs2').hide()
               /*$('input').attr('readonly','readonly')
               $('select').attr('disabled','disabled')*/

           }

           $('#rs1').hide();
           $('#rs2').hide();
           $('#rs').hide();
           $.ajax({
               url: '/hr/api/getPersonFileByUserId',
               type:'get',
               data: {uid: uid},
               success: function (res) {
                   var brand=''
                   //附件
                   $.each(res, function (i, n) {

                       if(i=='photoName'&&n!=''){
                           $('.hr_photo').html('<img style="width:160px;height:157px;" src="'+n+'"  />')
                           $('#'+i).val(n)
                       }/*else if(i=='adoptPinId'&&n!=''){
                           $('#table_personDetail #adoptPinName').attr('dataid',n);
                       }*/else if(i=='adoptPinName'&&n!=''){
                           $('#table_personDetail #adoptPinName').attr('username',n);
                           $('#table_personDetail #adoptPinName').val(n);
                       }else if(i=='staffNativePlace'&&n!=''){
                           var arr=n.split(',')
                           $('#sheng').val(arr[0])
                           $('#sheng').trigger('change')
                           $('#city').val(arr[1])
                           $('#'+i).val($('#sheng').val()+','+$('#city').val())
                       }else if(i=='category'&&n!=''){
                           $('#category').val(n)
                           $('#category').trigger('change')
                           setTimeout(function(){
                               $('#brand').val(brand)
                           },200)

                       }else if(i=='brand'&&n!=''){
                           brand = n
                       }else if(i=='deptmentName'&&n!=''){
                           $('#deptId').val(n)
                       }else if(i=='datesEmployed'&&n!=''){
                           $('#datesBrandEmployed').val(n)
                       }else if(i=='jobBeginning'&&n!=''){
                           $('#datesEmployed').val(n)
                       }else if(i=='staffMsn'&&n!=''){
                           $('#jdEmail').val(n)
                       }else if(i=='userId'&&n!=''){
                           $('#staffName').attr('userId',n)
                       }else if(i=='deptId'&&n!=''){
                           $('#deptId').attr('deptId',n)
                       }else if(i=='hrStaffEntryEducationList'){
                           $('.addEdu').html('')
                           var str=''
                           if(n.length>0){
                               for(var i=0;i<n.length;i++){
                                   str+='<table class="edu" eid="'+n[i].eid+'" id="'+n[i].id+'" style="width:100%">\n' +
                                       '                               <tr>\n' +
                                       '                                   <td nowrap="" class="TableData text_width test_text"  >学历：</td>\n' +
                                       '                                   <td class="TableData" width="180" >\n' +
                                       '                                       <select style="width:210px;" name="staffSchool" class="BigSelect per_xueli staffSchool" >\n' +
                                       '                                           <option value="" '+function(){if(selectVal(n[i].staffSchool,"")){return "selected=selected"}else{return ""}}()+'></option>\n' +
                                       '                                           <option value="1" '+function(){if(selectVal(n[i].staffSchool,"1")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.1" /></option>\n' +
                                       '                                           <option value="2" '+function(){if(selectVal(n[i].staffSchool,"2")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.2" /></option>\n' +
                                       '                                           <option value="3" '+function(){if(selectVal(n[i].staffSchool,"3")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.3" /></option>\n' +
                                       '                                           <option value="4" '+function(){if(selectVal(n[i].staffSchool,"4")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.4" /></option>\n' +
                                       '                                           <option value="5" '+function(){if(selectVal(n[i].staffSchool,"5")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.5" /></option>\n' +
                                       '                                           <option value="6" '+function(){if(selectVal(n[i].staffSchool,"6")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.6" /></option>\n' +
                                       '                                           <option value="7" '+function(){if(selectVal(n[i].staffSchool,"7")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.7" /></option>\n' +
                                       '                                           <option value="8" '+function(){if(selectVal(n[i].staffSchool,"8")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.8" /></option>\n' +
                                       '                                           <option value="9" '+function(){if(selectVal(n[i].staffSchool,"9")){return "selected=selected"}else{return ""}}()+'"><fmt:message code="vote.hr.9" /></option>\n' +
                                       '                                           <option value="11" '+function(){if(selectVal(n[i].staffSchool,"11")){return "selected=selected"}else{return ""}}()+'"><fmt:message code="vote.hr.10" /></option>\n' +
                                       '                                       </select>\n' +
                                       '                                   </td>\n' +
                                       '                                   <td nowrap="" class="TableData text_width"  >学位：</td>\n' +
                                       '                                   <td class="TableData" colspan="3" style="position:relative">\n' +
                                       '                                       <select style="width:210px;" name="staffDegree" class="BigSelect per_xuewei staffDegree" >\n' +
                                       '                                           <option value="" '+function(){if(selectVal(n[i].staffDegree,"")){return "selected=selected"}else{return ""}}()+'></option>\n' +
                                       '                                           <option value="1" '+function(){if(selectVal(n[i].staffDegree,"1")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.9" /></option>\n' +
                                       '                                           <option value="2" '+function(){if(selectVal(n[i].staffDegree,"2")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.8" /></option>\n' +
                                       '                                           <option value="3" '+function(){if(selectVal(n[i].staffDegree,"3")){return "selected=selected"}else{return ""}}()+'>MBA</option>\n' +
                                       '                                           <option value="4" '+function(){if(selectVal(n[i].staffDegree,"4")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.13" /></option>\n' +
                                       '                                           <option value="5" '+function(){if(selectVal(n[i].staffDegree,"5")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.12" /></option>\n' +
                                       '                                           <option value="6" '+function(){if(selectVal(n[i].staffDegree,"6")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.11" /></option>\n' +
                                       '                                           <option value="7" '+function(){if(selectVal(n[i].staffDegree,"7")){return "selected=selected"}else{return ""}}()+'><fmt:message code="event.th.nothing" /></option>\n' +
                                       '                                       </select>\n' +
                                       '                                       <span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>\n' +
                                       function(){
                                           if(i!=0){
                                               return '<a href="javascript:;" class="clearEdu" style="position:absolute;right:20px;">清除</a>'
                                           }else{
                                               return ''
                                           }
                                       }()
                                       + '                                   </td>\n' +
                                       '                               </tr>\n' +
                                       '                               <tr>\n' +
                                       '                                   <td nowrap="" class="TableData text_width"  >毕业时间：</td>\n' +
                                       '                                   <td class="TableData" width="180" >\n' +
                                       '                                       <input type="text" name="graduationDate" size="10" maxlength="10" class="BigInput per_overtime graduationDate" value="'+checkVal(n[i].graduationDate)+'" onclick="laydate({istime: true, format: \'YYYY-MM-DD\'})"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>\n' +
                                       '                                   </td>\n' +
                                       '                                   <td nowrap="" class="TableData text_width" >入学时间：</td>\n' +
                                       '                                   <td class="TableData" colspan="3"><input type="text" name="entranceDate" onclick="laydate({istime: true, format: \'YYYY-MM-DD\'})" value="'+checkVal(n[i].entranceDate)+'" class="BigInput per_shuiping entranceDate"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>\n' +
                                       '                               </tr>\n' +
                                       '                               <tr>\n' +
                                       '                                   <td nowrap="" class="TableData text_width" >毕业学校：</td>\n' +
                                       '                                   <td class="TableData" width="180"><input type="text" name="graduationSchool" value="'+n[i].graduationSchool+'" class="BigInput per_school graduationSchool"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>\n' +
                                       '                                   <td nowrap="" class="TableData text_width" >专业：</td>\n' +
                                       '                                   <td class="TableData" colspan="3"><input type="text" name="staffMajor" value="'+n[i].staffMajor+'" class="BigInput per_zhuanye staffMajor"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>\n' +
                                       '\n' +
                                       '                               </tr>\n' +
                                       '                           </table>'
                               }
                           }else{
                               str = '<table class="edu" style="width:100%">\n' +
                                   '                               <tr>\n' +
                                   '                                   <td nowrap="" class="TableData text_width test_text"  >学历：</td>\n' +
                                   '                                   <td class="TableData" width="180" >\n' +
                                   '                                       <select style="width:218px;" name="staffSchool" class="BigSelect per_xueli staffSchool" >\n' +
                                   '                                           <option value="" selected=""></option>\n' +
                                   '                                           <option value="1"><fmt:message code="vote.hr.1" /></option>\n' +
                                   '                                           <option value="2"><fmt:message code="vote.hr.2" /></option>\n' +
                                   '                                           <option value="3"><fmt:message code="vote.hr.3" /></option>\n' +
                                   '                                           <option value="4"><fmt:message code="vote.hr.4" /></option>\n' +
                                   '                                           <option value="5"><fmt:message code="vote.hr.5" /></option>\n' +
                                   '                                           <option value="6"><fmt:message code="vote.hr.6" /></option>\n' +
                                   '                                           <option value="7"><fmt:message code="vote.hr.7" /></option>\n' +
                                   '                                           <option value="8"><fmt:message code="vote.hr.8" /></option>\n' +
                                   '                                           <option value="9"><fmt:message code="vote.hr.9" /></option>\n' +
                                   '                                           <option value="11"><fmt:message code="vote.hr.10" /></option>\n' +
                                   '                                       </select>\n' +
                                   '                                   </td>\n' +
                                   '                                   <td nowrap="" class="TableData text_width"  >学位：</td>\n' +
                                   '                                   <td class="TableData" colspan="3" style="position:relative">\n' +
                                   '                                       <select style="width:218px;" name="staffDegree" class="BigSelect per_xuewei staffDegree" >\n' +
                                   '                                           <option value="" selected=""></option>\n' +
                                   '                                           <option value="1"><fmt:message code="vote.hr.9" /></option>\n' +
                                   '                                           <option value="2"><fmt:message code="vote.hr.8" /></option>\n' +
                                   '                                           <option value="3">MBA</option>\n' +
                                   '                                           <option value="4"><fmt:message code="vote.hr.13" /></option>\n' +
                                   '                                           <option value="5"><fmt:message code="vote.hr.12" /></option>\n' +
                                   '                                           <option value="6"><fmt:message code="vote.hr.11" /></option>\n' +
                                   '                                           <option value="7"><fmt:message code="event.th.nothing" /></option>\n' +
                                   '                                       </select>\n' +
                                   '                                       <span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>\n' +

                                   '                                   </td>\n' +
                                   '                               </tr>\n' +
                                   '                               <tr>\n' +
                                   '                                   <td nowrap="" class="TableData text_width"  >毕业时间：</td>\n' +
                                   '                                   <td class="TableData" width="180" >\n' +
                                   '                                       <input type="text" name="graduationDate" size="10" maxlength="10" class="BigInput per_overtime graduationDate" value="" onclick="laydate({istime: true, format: \'YYYY-MM-DD\'})"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>\n' +
                                   '                                   </td>\n' +
                                   '                                   <td nowrap="" class="TableData text_width" >入学时间：</td>\n' +
                                   '                                   <td class="TableData" colspan="3"><input type="text" name="entranceDate" onclick="laydate({istime: true, format: \'YYYY-MM-DD\'})" value="" class="BigInput per_shuiping entranceDate"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>\n' +
                                   '                               </tr>\n' +
                                   '                               <tr>\n' +
                                   '                                   <td nowrap="" class="TableData text_width" >毕业学校：</td>\n' +
                                   '                                   <td class="TableData" width="180"><input type="text" name="graduationSchool" value="" class="BigInput per_school graduationSchool"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>\n' +
                                   '                                   <td nowrap="" class="TableData text_width" >专业：</td>\n' +
                                   '                                   <td class="TableData" colspan="3"><input type="text" name="staffMajor" value="" class="BigInput per_zhuanye staffMajor"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>\n' +
                                   '\n' +
                                   '                               </tr>\n' +
                                   '                           </table>'
                           }
                           $('.addEdu').html(str)
                       }else if(i=='hrStaffEntryExperienceList'){
                           $('.work').remove()
                           var str2=''
                           if(n.length>0){
                               for(var i=0;i<n.length;i++){
                                   str2+=' <tr class="work" eid="'+n[i].eid+'" id="'+n[i].id+'">\n' +
                                       '                        <td class="TableData " style="text-align: center"><input type="text" onclick="laydate({istime: true, format: \'YYYY-MM-DD\'})" name="jobBeginning" value="'+n[i].jobBeginning+'" class="jobBeginning" style="width:44%;float:left"><span style="float:left">~</span><input name="jobEnd" class="jobEnd" value="'+n[i].jobEnd+'" onclick="laydate({istime: true, format: \'YYYY-MM-DD\'})" type="text" style="width:44%;float:left"><span style="color: #FF0000;font-size: 16px;">*</span></td>\n' +
                                       '                        <td class="TableData " style="text-align: center"><input type="text" value="'+n[i].workUnit+'" name="workUnit" class="workUnit" style="width:80%;margin-left:10%"><span style="color: #FF0000;font-size: 16px;">*</span></td>\n' +
                                       '                        <td class="TableData " style="text-align: center"><input type="text" value="'+n[i].workPost+'" name="workPost" class="workPost" style="width:80%;margin-left:10%"><span style="color: #FF0000;font-size: 16px;">*</span></td>\n' +
                                       '                        <td class="TableData " style="text-align: center"><input type="text" value="'+n[i].workDuty+'" name="workDuty" class="workDuty" style="width:80%;margin-left:0%"><span style="color: #FF0000;font-size: 16px;float:left">*</span>'+ function(){
                                           if(i!=0){
                                               return '<a href="javascript:;" class="clearWork" >清除</a>'
                                           }else{
                                               return ''
                                           }
                                       }()+'</td>\n' +
                                       '                    </tr>'

                               }
                           }else{
                               str2=' <tr class="work">\n' +
                                   '                        <td class="TableData " style="text-align: center"><input type="text" onclick="laydate({istime: true, format: \'YYYY-MM-DD\'})" name="jobBeginning" class="jobBeginning" style="width:44%;float:left"><span style="float:left">~</span><input name="jobEnd" class="jobEnd" onclick="laydate({istime: true, format: \'YYYY-MM-DD\'})" type="text" style="width:44%;float:left"><span style="color: #FF0000;font-size: 16px;">*</span></td>\n' +
                                   '                        <td class="TableData " style="text-align: center"><input type="text" name="workUnit" class="workUnit" style="width:80%;margin-left:10%"><span style="color: #FF0000;font-size: 16px;">*</span></td>\n' +
                                   '                        <td class="TableData " style="text-align: center"><input type="text" name="workPost" class="workPost" style="width:80%;margin-left:10%"><span style="color: #FF0000;font-size: 16px;">*</span></td>\n' +
                                   '                        <td class="TableData " style="text-align: center"><input type="text" name="workDuty" class="workDuty" style="width:80%;margin-left:0%"><span style="color: #FF0000;font-size: 16px;float: left;">*</span></td>\n' +
                                   '                    </tr>'
                           }
                           $('.hideWork').before(str2)
                       }else if(i=='attachments'&&n.length>0){
                           var str1=''
                           for(var i=0;i<n.length;i++){
                               for(var j=0;j<$('.filetrs').length;j++){
                                   if(n[i].attachmentTypeNo == $('.filetrs').eq(j).attr('codeNo')){
                                       var  str ='<div class="dech" deUrl="'+n[i].attUrl+'"><a href="<%=basePath %>download?'+n[i].attUrl+'" NAME="'+n[i].attachmentName+'"><img style="width:16px;" src="/img/file/cabinet@.png"/>'+n[i].attachmentName+'</a><img class="deImgs" style="margin-left:5px;cursor: pointer;" src="/img/file/icon_deletecha_03.png"/><input type="hidden" class="inHidden" value="'+n[i].attachmentId+'"></div>';
                                       $('.filetrs').eq(i).find('.Attachment').html(str)
                                   }
                               }
                           }
                       }else{
                           $('#'+i).val(n)
                       }

                       // $("input[name='" + i + "']").val(n)
                       // $("select[name='" + i + "']").val(n)
                   });
                   if(type=='detail'){
                       //$('.deImgs').hide();
                       $('.clearWork').hide()
                       $('.clearEdu').hide()
                       //$('input').attr('readonly','readonly')
                       //$('.Attachment').next('form').hide()
                       //$('select').attr('disabled','disabled')
                   }
               }
           })
       }

       if(id!=undefined) {

           /*$('input').attr("readonly", true);
           $('select').attr('disabled', true);*/
           $("#downCheck").hide();
           $('#add_send').hide();
           $('#add_send').hide()

           if(type == 'detail'){
                // console.log($('#rs1'))
               $('#rs1').css({'dispaly':'none!important'})
               $('#rs2').css({'dispaly':'none!important'})
               /*$('#rs1').css({'visibility':'hidden'})
               $('#rs2').css({'visibility':'hidden'})*/
           }else{
               $('#rs1').show()
               $('#rs2').show()
           }
           //  console.log('dsddsds');
           $.ajax({
               url: '/hr/staffEntry/selectEntryById',
               type:'get',
               data: {id: id},
               success: function (res) {
                   var ono="";
                   userPriv=res.object.userPriv;
                   userId=res.object.userId;
                   var data=res.object;
                   $('#state').val(data.auditState);
                   $('#staffId').val(data.id);
                   if(bodyId!=undefined||id!=undefined) {
                       // if ((userPriv == 3 && data.auditState == 1) || (userPriv == 5 && data.auditState == 2) || (userPriv == 2 && data.auditState == 3) || (userPriv == 1 && data.auditState == 4) ||(userPriv == 2 && data.auditState == 1) || (userPriv == 3 && data.auditState == 2) || (userPriv == 4 && data.auditState == 3) || (userPriv == 5 && data.auditState == 4) ) {
                       if ((userPriv == 6 && data.auditState == 1) || (userPriv == 4 && data.auditState == 2) || (userPriv == 5 && data.auditState == 3) || (userPriv == 10 && data.auditState == 4)|| (userPriv == 2 && data.auditState == 5)|| (userId== 152 && data.auditState == 6)) {
                       //console.log('dsdsd');

                           $('#rs1').show();
                           $('#rs2').show();
                           $('#rs').show();
                       }else{
                           $('#rs1').hide();
                           $('#rs2').hide();
                       }
                   }
                   // console.log(res.object.auditState)
                   //当auditState为5时，不再加一
                  /* if(res.object.auditState=='5'){
                       $('#rs1').hide()
                   }*/
                   $.each(res.object, function (i, n) {


                       if(i=='photoName'&&n!=''){
                           $('.hr_photo').html('<img style="width:160px;height:157px;" src="'+n+'"  />')
                           $('#'+i).val(n)
                       }
                       if(i=='userId'&&n!=''){
                           $('#staffName').attr('userId',n)
                       }
                       if(i=='staffNativePlace'&&n!=''){
                           var arr=n.split(',')
                           $('#sheng').val(arr[0])
                           $('#sheng').trigger('change')
                           $('#city').val(arr[1])
                           $('#'+i).val($('#sheng').val()+','+$('#city').val())
                       }
                       if(i=='hrStaffEntryEducationList'&&n.length>0){
                           $('.addEdu').html('')
                           var str=''
                           for(var i=0;i<n.length;i++){
                               str+='<table class="edu" eid="'+n[i].eid+'" id="'+n[i].id+'" style="width:100%">\n' +
                                   '                               <tr>\n' +
                                   '                                   <td nowrap="" class="TableData text_width test_text"  >学历：</td>\n' +
                                   '                                   <td class="TableData" width="180" >\n' +
                                   '                                       <select style="width:210px;" name="staffSchool" class="BigSelect per_xueli staffSchool" >\n' +
                                   '                                           <option value="" '+function(){if(selectVal(n[i].staffSchool,"")){return "selected=selected"}else{return ""}}()+'></option>\n' +
                                   '                                           <option value="1" '+function(){if(selectVal(n[i].staffSchool,"1")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.1" /></option>\n' +
                                   '                                           <option value="2" '+function(){if(selectVal(n[i].staffSchool,"2")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.2" /></option>\n' +
                                   '                                           <option value="3" '+function(){if(selectVal(n[i].staffSchool,"3")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.3" /></option>\n' +
                                   '                                           <option value="4" '+function(){if(selectVal(n[i].staffSchool,"4")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.4" /></option>\n' +
                                   '                                           <option value="5" '+function(){if(selectVal(n[i].staffSchool,"5")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.5" /></option>\n' +
                                   '                                           <option value="6" '+function(){if(selectVal(n[i].staffSchool,"6")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.6" /></option>\n' +
                                   '                                           <option value="7" '+function(){if(selectVal(n[i].staffSchool,"7")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.7" /></option>\n' +
                                   '                                           <option value="8" '+function(){if(selectVal(n[i].staffSchool,"8")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.8" /></option>\n' +
                                   '                                           <option value="9" '+function(){if(selectVal(n[i].staffSchool,"9")){return "selected=selected"}else{return ""}}()+'"><fmt:message code="vote.hr.9" /></option>\n' +
                                   '                                           <option value="11" '+function(){if(selectVal(n[i].staffSchool,"11")){return "selected=selected"}else{return ""}}()+'"><fmt:message code="vote.hr.10" /></option>\n' +
                                   '                                       </select>\n' +
                                   '                                   </td>\n' +
                                   '                                   <td nowrap="" class="TableData text_width"  >学位：</td>\n' +
                                   '                                   <td class="TableData" colspan="3" style="position:relative">\n' +
                                   '                                       <select style="width:210px;" name="staffDegree" class="BigSelect per_xuewei staffDegree" >\n' +
                                   '                                           <option value="" '+function(){if(selectVal(n[i].staffDegree,"")){return "selected=selected"}else{return ""}}()+'></option>\n' +
                                   '                                           <option value="1" '+function(){if(selectVal(n[i].staffDegree,"1")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.9" /></option>\n' +
                                   '                                           <option value="2" '+function(){if(selectVal(n[i].staffDegree,"2")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.8" /></option>\n' +
                                   '                                           <option value="3" '+function(){if(selectVal(n[i].staffDegree,"3")){return "selected=selected"}else{return ""}}()+'>MBA</option>\n' +
                                   '                                           <option value="4" '+function(){if(selectVal(n[i].staffDegree,"4")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.13" /></option>\n' +
                                   '                                           <option value="5" '+function(){if(selectVal(n[i].staffDegree,"5")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.12" /></option>\n' +
                                   '                                           <option value="6" '+function(){if(selectVal(n[i].staffDegree,"6")){return "selected=selected"}else{return ""}}()+'><fmt:message code="vote.hr.11" /></option>\n' +
                                   '                                           <option value="7" '+function(){if(selectVal(n[i].staffDegree,"7")){return "selected=selected"}else{return ""}}()+'><fmt:message code="event.th.nothing" /></option>\n' +
                                   '                                       </select>\n' +
                                   '                                       <span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>\n' +
                                   function(){
                                       if(i!=0&&type!='detail'){
                                           return '<a href="javascript:;" class="clearEdu" style="position:absolute;right:20px;">清除</a>'
                                       }else{
                                           return ''
                                       }
                                   }()
                                   +'                                   </td>\n' +
                                   '                               </tr>\n' +
                                   '                               <tr>\n' +
                                   '                                   <td nowrap="" class="TableData text_width"  >毕业时间：</td>\n' +
                                   '                                   <td class="TableData" width="180" >\n' +
                                   '                                       <input type="text" name="graduationDate" size="10" maxlength="10" class="BigInput per_overtime graduationDate" value="'+checkVal(n[i].graduationDate)+'" onclick="laydate({istime: true, format: \'YYYY-MM-DD\'})"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span>\n' +
                                   '                                   </td>\n' +
                                   '                                   <td nowrap="" class="TableData text_width" >入学时间：</td>\n' +
                                   '                                   <td class="TableData" colspan="3"><input type="text" name="entranceDate" onclick="laydate({istime: true, format: \'YYYY-MM-DD\'})" value="'+checkVal(n[i].entranceDate)+'" class="BigInput per_shuiping entranceDate"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>\n' +
                                   '                               </tr>\n' +
                                   '                               <tr>\n' +
                                   '                                   <td nowrap="" class="TableData text_width" >毕业学校：</td>\n' +
                                   '                                   <td class="TableData" width="180"><input type="text" name="graduationSchool" value="'+n[i].graduationSchool+'" class="BigInput per_school graduationSchool"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>\n' +
                                   '                                   <td nowrap="" class="TableData text_width" >专业：</td>\n' +
                                   '                                   <td class="TableData" colspan="3"><input type="text" name="staffMajor" value="'+n[i].staffMajor+'" class="BigInput per_zhuanye staffMajor"><span style="color: #FF0000;margin-left: 0px;font-size: 16px;">*</span></td>\n' +
                                   '\n' +
                                   '                               </tr>\n' +
                                   '                           </table>'
                           }
                           $('.addEdu').html(str)
                       }else if(i=='datesEmployed'&&n!=''){
                           $('#datesBrandEmployed').val(n)
                       }else if(i=='jobBeginning'&&n!=''){
                           $('#datesEmployed').val(n)
                       }else if(i=='staffMsn'&&n!=''){
                           $('#jdEmail').val(n)
                       }else if(i=='hrStaffEntryExperienceList'&&n.length>0){
                           $('.work').remove()
                           var str2=''
                           for(var i=0;i<n.length;i++){
                               str2+=' <tr class="work" eid="'+n[i].eid+'" id="'+n[i].id+'">\n' +
                                   '                        <td class="TableData " style="text-align: center"><input type="text" onclick="laydate({istime: true, format: \'YYYY-MM-DD\'})" name="jobBeginning" value="'+n[i].jobBeginning+'" class="jobBeginning" style="width:44%;float:left"><span style="float:left">~</span><input name="jobEnd" class="jobEnd" value="'+n[i].jobEnd+'" onclick="laydate({istime: true, format: \'YYYY-MM-DD\'})" type="text" style="width:44%;float:left"><span style="color: #FF0000;font-size: 16px;">*</span></td>\n' +
                                   '                        <td class="TableData " style="text-align: center"><input type="text" value="'+n[i].workUnit+'" name="workUnit" class="workUnit" style="width:80%;margin-left:10%"><span style="color: #FF0000;font-size: 16px;">*</span></td>\n' +
                                   '                        <td class="TableData " style="text-align: center"><input type="text" value="'+n[i].workPost+'" name="workPost" class="workPost" style="width:80%;margin-left:10%"><span style="color: #FF0000;font-size: 16px;">*</span></td>\n' +
                                   '                        <td class="TableData " style="text-align: center"><input type="text" value="'+n[i].workDuty+'" name="workDuty" class="workDuty" style="width:80%;margin-left:0%"><span style="color: #FF0000;font-size: 16px;float:left">*</span>'+function(){
                                       if(i!=0&&type!='detail'){
                                           return '<a href="javascript:;" class="clearWork" >清除</a>'
                                       }else{
                                           return ''
                                       }
                                   }()+'</td>\n' +
                                   '                    </tr>'

                           }
                           $('.hideWork').before(str2)
                       }else if(i=='attachments'&&n.length>0){
                           var str1=''
                           for(var i=0;i<n.length;i++){
                               for(var j=0;j<$('.filetrs').length;j++){
                                   if(n[i].attachmentTypeNo == $('.filetrs').eq(j).attr('codeNo')){
                                       var  str ='<div class="dech" deUrl="'+n[i].attUrl+'"><a href="<%=basePath %>download?'+n[i].attUrl+'" NAME="'+n[i].attachmentName+'"><img style="width:16px;" src="/img/file/cabinet@.png"/>'+n[i].attachmentName+'</a><img class="deImgs" style="margin-left:5px;cursor: pointer;" src="/img/file/icon_deletecha_03.png"/><input type="hidden" class="inHidden" value="'+n[i].attachmentId+'"></div>';
                                       $('.filetrs').eq(i).find('.Attachment').html(str)
                                   }
                               }
                           }
                       }else if(i=='deptmentName'&&n!=''){
                           $('#deptId').val(n)
                       }else if(i=='deptId'&&n!=''){
                           $('#deptId').attr("deptId",n)
                       }else{
                           $('#'+i).val(n)
                       }
                       $("input[name='" + i + "']").val(n)
                       $("select[name='" + i + "']").val(n)


//                       if (i=="category"){
//                           //品牌下拉框数据根据品类数据展现,因为是联动必须先选中品类才可以拿到值走接口所以只能写到这里
//                           var codeNo=$('#category option:checked').val()
                           // console.log(codeNo)
//                           $.ajax({
//                               type: 'get',
//                               url: '/hr/staffEntry/selectBrand',
//                               data:{
//                                   codeNo:codeNo
//                               },
//                               dataType: 'json',
//                               success: function (obj) {
//                                   var data=obj.obj;
//                                   str=" <option value=''>请选择品牌</option>";
//                                   if(obj.flag){
//                                       for(var i=0;i<data.length;i++){
//                                           str+="<option value='"+data[i].codeNo+"'>"+data[i].codeName+"</option>";
//                                       }
//                                   }
//                                   $('[name="brand"]').html(str);
//                                   $("select[name='brand']").val(res.object.brand);
//                               }
//                           });

//                       }

                   });
                   if(type=='detail'){
                       //$('.deImgs').hide();
                       $('.clearWork').hide()
                       $('.clearEdu').hide()
                       //$('input').attr('readonly','readonly')
                       //$('.Attachment').next('form').hide()
                       //$('select').attr('disabled','disabled')
                   }
               }
           })
       }
   }

</script>


</body>
</html>



